Simple Question (Direct)
Simple Question
Q11936208
P39
Q12737077
USER
What were the positions held by Maties de Vall i Llaberia ?
(Q11936208,P39,c(Q12737077))
action filter_type
action find
entity Q11936208
relation P39
type Q12737077
['Q11936208', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q11936208 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
Maties de Vall i Llaberia
action filter_type
action find
entity Maties de Vall i Llaberia
relation position held
type occupation
['Maties de Vall i Llaberia', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Maties_de_Vall_i_Llaberia property:position_held ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q30185 Q18171345 Q708492
SYSTEM
mayor, Member of the Congress of Deputies of Spain, councillor
Q30185 Q18171345 Q708492
(Q11936208,P39,c(Q12737077))
action filter_type
action find
entity Q11936208
relation P39
type Q12737077
The positions held by Maties de Vall i Llaberia were [ANSWERS]
['Q11936208', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q11936208 property:P39 ?y . ?y rdf:type ontology:Q12737077 }
mayor Member of the Congress of Deputies of Spain councillor
The positions held by Maties de Vall i Llaberia were mayor, Member of the Congress of Deputies of Spain and councillor
mayor Member of the Congress of Deputies of Spain councillor
action filter_type
action find
entity Maties de Vall i Llaberia
relation position held
type occupation
['Maties de Vall i Llaberia', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Maties_de_Vall_i_Llaberia property:position_held ?y . ?y rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q30185
P361
Q15617994
USER
What is that occupation a component of ?
(Q30185,P361,c(Q15617994))
action filter_type
action find
entity Q30185
relation P361
type Q15617994
['Q30185', 'P361', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q30185 property:P361 ?z . ?z rdf:type ontology:Q15617994 }
mayor
action filter_type
action find
entity mayor
relation part of
type designation for an administrative territorial entity
['mayor', 'part of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:mayor property:part_of ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q30185
SYSTEM
Did you mean mayor ?
Q30185 Q18171345 Q708492
(Q30185,P361,c(Q15617994)) (Q18171345,P361,c(Q15617994)) (Q708492,P361,c(Q15617994))
[ANSWER]
['Q30185', 'P361', {'concept': 'Q15617994'}] ['Q18171345', 'P361', {'concept': 'Q15617994'}] ['Q708492', 'P361', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q30185 property:P361 ?z . ?z rdf:type ontology:Q15617994 }
mayor Member of the Congress of Deputies of Spain councillor
Did you mean mayor ?
mayor
['mayor', 'part of', {'concept': 'designation for an administrative territorial entity'}] ['Member of the Congress of Deputies of Spain', 'part of', {'concept': 'designation for an administrative territorial entity'}] ['councillor', 'part of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:mayor property:part_of ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q30185,P361,c(Q15617994))
['Q30185', 'P361', {'concept': 'Q15617994'}]
['mayor', 'part of', {'concept': 'designation for an administrative territorial entity'}]
[]
Q15284
SYSTEM
municipality
Q15284
(Q30185,P361,c(Q15617994))
action filter_type
action find
entity Q30185
relation P361
type Q15617994
That occupation a component of is a [ANSWER]
['Q30185', 'P361', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q30185 property:P361 ?z . ?z rdf:type ontology:Q15617994 }
municipality
That occupation a component of is a municipality
municipality
action filter_type
action find
entity mayor
relation part of
type designation for an administrative territorial entity
['mayor', 'part of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:mayor property:part_of ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3037884 Q18171345
P27 P17
Q15617994
USER
Which administrative territories are Member of the Congress of Deputies of Spain located in or do Doudou Diop belong to ?
OR((Q18171345,P17,c(Q15617994)), (Q3037884,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18171345
relation P17
action find
entity Q3037884
relation P27
type Q15617994
{'OR': [['Q18171345', 'P17', {'concept': 'Q15617994'}], ['Q3037884', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q3037884 property:P27 ?m } UNION { resource:Q18171345 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
Doudou Diop Member of the Congress of Deputies of Spain
action filter_type
action union
action find
entity Member of the Congress of Deputies of Spain
relation country
action find
entity Doudou Diop
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Member of the Congress of Deputies of Spain', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Doudou Diop', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Doudou_Diop property:country_of_citizenship ?m } UNION { resource:Member_of_the_Congress_of_Deputies_of_Spain property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q1041
SYSTEM
Spain, Senegal
Q29 Q1041
OR((Q18171345,P17,c(Q15617994)), (Q3037884,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q18171345
relation P17
action find
entity Q3037884
relation P27
type Q15617994
[ANSWERS] are Member of the Congress of Deputies of Spain located in or do Doudou Diop belong to
{'OR': [['Q18171345', 'P17', {'concept': 'Q15617994'}], ['Q3037884', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q3037884 property:P27 ?m } UNION { resource:Q18171345 property:P17 ?m } } . ?m rdf:type ontology:Q15617994 }
Spain Senegal
Spain and Senegal are Member of the Congress of Deputies of Spain located in or do Doudou Diop belong to
Spain Senegal
action filter_type
action union
action find
entity Member of the Congress of Deputies of Spain
relation country
action find
entity Doudou Diop
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Member of the Congress of Deputies of Spain', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Doudou Diop', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Doudou_Diop property:country_of_citizenship ?m } UNION { resource:Member_of_the_Congress_of_Deputies_of_Spain property:country ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3478431
P495
Q838948
USER
Did Semillas que el mar arrastra originate in those administrative territories ?
(Q3478431,P495,Q29) (Q3478431,P495,Q1041)
action is_in
entity prev_answer
action find
entity Q3478431
relation P495
['Q3478431', 'P495', 'Q29'] ['Q3478431', 'P495', 'Q1041']
ASK WHERE { VALUES ( ?b ) { ( resource:Q29 ) ( resource:Q1041 ) } . resource:Q3478431 property:P495 ?b }
Semillas que el mar arrastra
action is_in
entity prev_answer
action find
entity Semillas que el mar arrastra
relation country of origin
['Semillas que el mar arrastra', 'country of origin', 'Spain'] ['Semillas que el mar arrastra', 'country of origin', 'Senegal']
ASK WHERE { VALUES ( ?b ) { ( resource:Spain ) ( resource:Senegal ) } . resource:Semillas_que_el_mar_arrastra property:country_of_origin ?b }
[]
work of art
SYSTEM
YES
(Q3478431,P495,Q29) (Q3478431,P495,Q1041)
action is_in
entity prev_answer
action find
entity Q3478431
relation P495
[ANSWER]
['Q3478431', 'P495', 'Q29'] ['Q3478431', 'P495', 'Q1041']
ASK WHERE { VALUES ( ?b ) { ( resource:Q29 ) ( resource:Q1041 ) } . resource:Q3478431 property:P495 ?b }
Yes
action is_in
entity prev_answer
action find
entity Semillas que el mar arrastra
relation country of origin
['Semillas que el mar arrastra', 'country of origin', 'Spain'] ['Semillas que el mar arrastra', 'country of origin', 'Senegal']
ASK WHERE { VALUES ( ?b ) { ( resource:Spain ) ( resource:Senegal ) } . resource:Semillas_que_el_mar_arrastra property:country_of_origin ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with approximately 77 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 77
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?l ) WHERE { ?g property:P530 ?o . ?g rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?l = 77 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 77
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?l ) WHERE { ?g property:diplomatic_relation ?o . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?l = 77 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
2
Q38 Q230
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 77
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?l ) WHERE { ?g property:P530 ?o . ?g rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?l = 77 ) }
Italy Georgia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 77
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?o ) AS ?l ) WHERE { ?g property:diplomatic_relation ?o . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?l = 77 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P1532
Q502895
USER
Which people represent Spain ?
(c(Q502895),P1532,Q29)
action filter_type
action find_reverse
entity Q29
relation P1532
type Q502895
[{'concept': 'Q502895'}, 'P1532', 'Q29']
SELECT DISTINCT ?e WHERE { ?e property:P1532 resource:Q29 . ?e rdf:type ontology:Q502895 }
Spain
action filter_type
action find_reverse
entity Spain
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Spain']
SELECT DISTINCT ?e WHERE { ?e property:country_for_sport resource:Spain . ?e rdf:type ontology:common_name }
[]
common name
Q19867440 Q12255976 Q6165500
SYSTEM
Concepción Paredes, Cristina Castro, Javier Fernández
Q5938299 Q20630291 Q23008429 Q272284 Q16232317 Q23008405 Q20954210 Q11694146 Q20535131 Q12253280 Q1392421 Q25711732 Q24956498 Q20724299 Q6188586 Q12255976 Q19867440 Q25841216 Q4703305 Q21557414 Q16215768 Q21642970 Q1369590 Q6165500 Q18755906 Q25756719 Q18698326 Q23902595 Q23319644 Q5865148 Q22896387 Q23662377
(c(Q502895),P1532,Q29)
action filter_type
action find_reverse
entity Q29
relation P1532
type Q502895
[ANSWERS] represent Spain
[{'concept': 'Q502895'}, 'P1532', 'Q29']
SELECT DISTINCT ?e WHERE { ?e property:P1532 resource:Q29 . ?e rdf:type ontology:Q502895 }
José Arconada Óscar Añón Sande Luis Turón Carolina Ruiz Castillo Antonio Noguera Florencio Gascón Lucas Búa de Miguel Didac Salas Estela Estévez Amaia Andrés Miguel Muñoz Pantoja Sergio Fernández Juliet Itoya Marc Alcalá Jesús Oliván Cristina Castro Concepción Paredes Irene Alfonso Jose Javier Arqués Ferrer Antonio Andrés Pedro Antonio Esteso Salvador Rodríguez Joan Lino Martínez Javier Fernández Ignacio Plaza Jiménez Daniel Mateo Cristo Reyes Enrique Talavera Daniel Andújar Francisco Aritmendi Julia Merino Álvaro de Arriba
Concepción Paredes, Cristina Castro and Javier Fernández represent Spain
Concepción Paredes Cristina Castro Javier Fernández
action filter_type
action find_reverse
entity Spain
relation country for sport
type common name
[{'concept': 'common name'}, 'country for sport', 'Spain']
SELECT DISTINCT ?e WHERE { ?e property:country_for_sport resource:Spain . ?e rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6165500
P1344
Q18608583
USER
Which recurring sporting event did that person take part in ?
(Q6165500,P1344,c(Q18608583))
action filter_type
action find
entity Q6165500
relation P1344
type Q18608583
['Q6165500', 'P1344', {'concept': 'Q18608583'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q18608583 . resource:Q6165500 property:P1344 ?x }
Javier Fernández
action filter_type
action find
entity Javier Fernández
relation participant of
type recurring sporting event
['Javier Fernández', 'participant of', {'concept': 'recurring sporting event'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:recurring_sporting_event . resource:Javier_Fernández property:participant_of ?x }
[]
recurring sporting event
Clarification for simple ques.
Q12255976
SYSTEM
Did you mean Cristina Castro ?
Q19867440 Q12255976 Q6165500
(Q19867440,P1344,c(Q18608583)) (Q12255976,P1344,c(Q18608583)) (Q6165500,P1344,c(Q18608583))
[ANSWER]
['Q19867440', 'P1344', {'concept': 'Q18608583'}] ['Q12255976', 'P1344', {'concept': 'Q18608583'}] ['Q6165500', 'P1344', {'concept': 'Q18608583'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q18608583 . resource:Q6165500 property:P1344 ?x }
Concepción Paredes Cristina Castro Javier Fernández
Did you mean Cristina Castro ?
Cristina Castro
['Concepción Paredes', 'participant of', {'concept': 'recurring sporting event'}] ['Cristina Castro', 'participant of', {'concept': 'recurring sporting event'}] ['Javier Fernández', 'participant of', {'concept': 'recurring sporting event'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:recurring_sporting_event . resource:Javier_Fernández property:participant_of ?x }
[]
Simple Question (Coreferenced)
USER
No, I meant Javier Fernández. Could you tell me the answer for that?
(Q6165500,P1344,c(Q18608583))
Q6165500
['Q6165500', 'P1344', {'concept': 'Q18608583'}]
['Javier Fernández', 'participant of', {'concept': 'recurring sporting event'}]
[]
Q2637731
SYSTEM
2005 European Judo Championships
Q2637731
(Q6165500,P1344,c(Q18608583))
action filter_type
action find
entity Q6165500
relation P1344
type Q18608583
Part that person took in the [ANSWER]
['Q6165500', 'P1344', {'concept': 'Q18608583'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q18608583 . resource:Q6165500 property:P1344 ?x }
2005 European Judo Championships
Part that person took in the 2005 European Judo Championships
2005 European Judo Championships
action filter_type
action find
entity Javier Fernández
relation participant of
type recurring sporting event
['Javier Fernández', 'participant of', {'concept': 'recurring sporting event'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:recurring_sporting_event . resource:Javier_Fernández property:participant_of ?x }
[]