Simple Question (Direct)
Simple Question
Q432249
P20
Q56061
USER
Where did the demise of Ugnė Karvelis occur ?
(Q432249,P20,c(Q56061))
action filter_type
action find
entity Q432249
relation P20
type Q56061
['Q432249', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q432249 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Ugnė Karvelis
action filter_type
action find
entity Ugnė Karvelis
relation place of death
type administrative territorial entity
['Ugnė Karvelis', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Ugnė_Karvelis property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q432249,P20,c(Q56061))
action filter_type
action find
entity Q432249
relation P20
type Q56061
The demise of Ugnė Karvelis occurred in [ANSWER]
['Q432249', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q432249 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Paris
The demise of Ugnė Karvelis occurred in Paris
Paris
action filter_type
action find
entity Ugnė Karvelis
relation place of death
type administrative territorial entity
['Ugnė Karvelis', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Ugnė_Karvelis property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q90
P163
Q14660
USER
Which flag is associated with that administrative territory ?
(Q90,P163,c(Q14660))
action filter_type
action find
entity Q90
relation P163
type Q14660
['Q90', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?h WHERE { resource:Q90 property:P163 ?h . ?h rdf:type ontology:Q14660 }
Paris
action filter_type
action find
entity Paris
relation flag
type flag
['Paris', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?h WHERE { resource:Paris property:flag ?h . ?h rdf:type ontology:flag }
[]
flag
Q659058
SYSTEM
flag of Paris
Q659058
(Q90,P163,c(Q14660))
action filter_type
action find
entity Q90
relation P163
type Q14660
The [ANSWER] is associated with that administrative territory
['Q90', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?h WHERE { resource:Q90 property:P163 ?h . ?h rdf:type ontology:Q14660 }
flag of Paris
The flag of Paris is associated with that administrative territory
flag of Paris
action filter_type
action find
entity Paris
relation flag
type flag
['Paris', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?h WHERE { resource:Paris property:flag ?h . ?h rdf:type ontology:flag }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q90
P1376
Q15617994 Q20667921
USER
How many administrative territories or french administrative divisions have Paris as their county seat ?
(Q90,P1376,c(Q15617994)) (Q90,P1376,c(Q20667921))
action count
action union
action filter_type
action find
entity Q90
relation P1376
type Q15617994
action filter_type
action find
entity Q90
relation P1376
type Q20667921
['Q90', 'P1376', {'concept': 'Q15617994'}] ['Q90', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { VALUES ( ?r ) { ( ontology:Q15617994 ) ( ontology:Q20667921 ) } . ?e rdf:type ?r }
Paris
action count
action union
action filter_type
action find
entity Paris
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Paris
relation capital of
type type of french administrative division
['Paris', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Paris', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { VALUES ( ?r ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?r }
[]
designation for an administrative territorial entity type of french administrative division
SYSTEM
3
Q142 Q1142326 Q13917
(Q90,P1376,c(Q15617994)) (Q90,P1376,c(Q20667921))
action count
action union
action filter_type
action find
entity Q90
relation P1376
type Q15617994
action filter_type
action find
entity Q90
relation P1376
type Q20667921
[ANSWER]
['Q90', 'P1376', {'concept': 'Q15617994'}] ['Q90', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { VALUES ( ?r ) { ( ontology:Q15617994 ) ( ontology:Q20667921 ) } . ?e rdf:type ?r }
France Seine Île-de-France
3
action count
action union
action filter_type
action find
entity Paris
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity Paris
relation capital of
type type of french administrative division
['Paris', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Paris', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { VALUES ( ?r ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?r }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q17049461 Q90
P161 P6
Q502895
USER
Which people have Paris as their heads of government or were casted in Confession ?
OR((Q90,P6,c(Q502895)), (Q17049461,P161,c(Q502895)))
action filter_type
action union
action find
entity Q90
relation P6
action find
entity Q17049461
relation P161
type Q502895
{'OR': [['Q90', 'P6', {'concept': 'Q502895'}], ['Q17049461', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . { { resource:Q90 property:P6 ?c } UNION { resource:Q17049461 property:P161 ?c } } }
Confession Paris
action filter_type
action union
action find
entity Paris
relation head of government
action find
entity Confession
relation cast member
type common name
{'OR': [['Paris', 'head of government', {'concept': 'common name'}], ['Confession', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . { { resource:Paris property:head_of_government ?c } UNION { resource:Confession property:cast_member ?c } } }
[]
common name
Q256294 Q2851133 Q1685102 Q959708 Q2105 Q601266 Q3131449 Q488090 Q1684642 Q1685859
SYSTEM
Some of them are Bertrand Delanoë, Anne Hidalgo, Jean-Nicolas Pache, Jules Ferry, Jacques Chirac, Louis-Antoine Garnier-Pagès, Henri Lefèvre d'Ormesson, Lee Kwang-su, Jean-Baptiste Fleuriot-Lescot, Jean Tiberi
Q1986521 Q2105 Q494734 Q1685859 Q256294 Q289303 Q1685102 Q601266 Q2596877 Q677730 Q959708 Q3131449 Q947901 Q488090 Q2851133 Q656015 Q1684642 Q1685301 Q491763
OR((Q90,P6,c(Q502895)), (Q17049461,P161,c(Q502895)))
action filter_type
action union
action find
entity Q90
relation P6
action find
entity Q17049461
relation P161
type Q502895
[ANSWERS] have Paris as their heads of government or were casted in Confession
{'OR': [['Q90', 'P6', {'concept': 'Q502895'}], ['Q17049461', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . { { resource:Q90 property:P6 ?c } UNION { resource:Q17049461 property:P161 ?c } } }
Nicolas Chambon Jacques Chirac Ju Ji-hun Jean Tiberi Bertrand Delanoë Étienne Arago Jean-Nicolas Pache Louis-Antoine Garnier-Pagès René Boucher Armand Marrast Jules Ferry Henri Lefèvre d'Ormesson Jérôme Pétion de Villeneuve Lee Kwang-su Anne Hidalgo Philibert Borie Jean-Baptiste Fleuriot-Lescot Jean Sylvain Bailly Ji Seong
Bertrand Delanoë, Anne Hidalgo, Jean-Nicolas Pache, Jules Ferry, Jacques Chirac, Louis-Antoine Garnier-Pagès, Henri Lefèvre d'Ormesson, Lee Kwang-su, Jean-Baptiste Fleuriot-Lescot and Jean Tiberi have Paris as their heads of government or were casted in Confession
Bertrand Delanoë Anne Hidalgo Jean-Nicolas Pache Jules Ferry Jacques Chirac Louis-Antoine Garnier-Pagès Henri Lefèvre d'Ormesson Lee Kwang-su Jean-Baptiste Fleuriot-Lescot Jean Tiberi
action filter_type
action union
action find
entity Paris
relation head of government
action find
entity Confession
relation cast member
type common name
{'OR': [['Paris', 'head of government', {'concept': 'common name'}], ['Confession', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . { { resource:Paris property:head_of_government ?c } UNION { resource:Confession property:cast_member ?c } } }
[]