Simple Question (Direct)
Simple Question
Q3165316
P166
Q618779
USER
What were received by Jean-David Levitte ?
(Q3165316,P166,c(Q618779))
action filter_type
action find
entity Q3165316
relation P166
type Q618779
['Q3165316', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q618779 . resource:Q3165316 property:P166 ?f }
Jean-David Levitte
action filter_type
action find
entity Jean-David Levitte
relation award received
type award
['Jean-David Levitte', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:award . resource:Jean-David_Levitte property:award_received ?f }
[]
award
Q13422138 Q20857713 Q13452531
SYSTEM
Knight of the National Order of Merit, Grand Officer of the National Order of the Cedar, Commandeur des Arts et des Lettres‎
Q13422138 Q20857713 Q13452531 Q10855195 Q10905105
(Q3165316,P166,c(Q618779))
action filter_type
action find
entity Q3165316
relation P166
type Q618779
[ANSWERS] were received by Jean-David Levitte
['Q3165316', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q618779 . resource:Q3165316 property:P166 ?f }
Knight of the National Order of Merit Grand Officer of the National Order of the Cedar Commandeur des Arts et des Lettres‎ Officer of the Legion of Honour Grand Cross 1st class of the Order of Merit of the Federal Republic of Germany
Knight of the National Order of Merit, Grand Officer of the National Order of the Cedar and Commandeur des Arts et des Lettres‎ were received by Jean-David Levitte
Knight of the National Order of Merit Grand Officer of the National Order of the Cedar Commandeur des Arts et des Lettres‎
action filter_type
action find
entity Jean-David Levitte
relation award received
type award
['Jean-David Levitte', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:award . resource:Jean-David_Levitte property:award_received ?f }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q13422138 Q20857713 Q13452531
P17
Q15617994
USER
Which administrative territories do those awards belong to ?
(Q13422138,P17,c(Q15617994)) (Q20857713,P17,c(Q15617994)) (Q13452531,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q13422138', 'P17', {'concept': 'Q15617994'}] ['Q20857713', 'P17', {'concept': 'Q15617994'}] ['Q13452531', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?n ) { ( resource:Q13422138 ) ( resource:Q20857713 ) ( resource:Q13452531 ) } . ?n property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Knight of the National Order of Merit Grand Officer of the National Order of the Cedar Commandeur des Arts et des Lettres‎
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Knight of the National Order of Merit', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Grand Officer of the National Order of the Cedar', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Commandeur des Arts et des Lettres\u200e', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?n ) { ( resource:Knight_of_the_National_Order_of_Merit ) ( resource:Grand_Officer_of_the_National_Order_of_the_Cedar ) ( resource:Commandeur_des_Arts_et_des_Lettres‎ ) } . ?n property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q822 Q142
SYSTEM
France for 1st, 3rd, Lebanon for 2nd
Q142 Q822 Q142
(Q13422138,P17,c(Q15617994)) (Q20857713,P17,c(Q15617994)) (Q13452531,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWERS]
['Q13422138', 'P17', {'concept': 'Q15617994'}] ['Q20857713', 'P17', {'concept': 'Q15617994'}] ['Q13452531', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?n ) { ( resource:Q13422138 ) ( resource:Q20857713 ) ( resource:Q13452531 ) } . ?n property:P17 ?y . ?y rdf:type ontology:Q15617994 }
France Lebanon France
Those awards belong to France, Lebanon and France
France Lebanon France
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Knight of the National Order of Merit', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Grand Officer of the National Order of the Cedar', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Commandeur des Arts et des Lettres\u200e', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { VALUES ( ?n ) { ( resource:Knight_of_the_National_Order_of_Merit ) ( resource:Grand_Officer_of_the_National_Order_of_the_Cedar ) ( resource:Commandeur_des_Arts_et_des_Lettres‎ ) } . ?n property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q142
P1376
Q56061
USER
What is the capital of that administrative territory ?
(c(Q56061),P1376,Q142)
action filter_type
action find_reverse
entity Q142
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q142']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q142 . ?u rdf:type ontology:Q56061 }
France
action filter_type
action find_reverse
entity France
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'France']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:France . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q142
SYSTEM
Did you mean France ?
Q142 Q822 Q142
(c(Q56061),P1376,Q142) (c(Q56061),P1376,Q822) (c(Q56061),P1376,Q142)
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q142'] [{'concept': 'Q56061'}, 'P1376', 'Q822'] [{'concept': 'Q56061'}, 'P1376', 'Q142']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q142 . ?u rdf:type ontology:Q56061 }
France Lebanon France
Did you mean France ?
France
[{'concept': 'administrative territorial entity'}, 'capital of', 'France'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Lebanon'] [{'concept': 'administrative territorial entity'}, 'capital of', 'France']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:France . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q56061),P1376,Q142)
[{'concept': 'Q56061'}, 'P1376', 'Q142']
[{'concept': 'administrative territorial entity'}, 'capital of', 'France']
[]
Q90
SYSTEM
Paris
Q90
(c(Q56061),P1376,Q142)
action filter_type
action find_reverse
entity Q142
relation P1376
type Q56061
The capital of that administrative territory is [ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q142']
SELECT DISTINCT ?u WHERE { ?u property:P1376 resource:Q142 . ?u rdf:type ontology:Q56061 }
Paris
The capital of that administrative territory is Paris
Paris
action filter_type
action find_reverse
entity France
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'France']
SELECT DISTINCT ?u WHERE { ?u property:capital_of resource:France . ?u rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q90 Q321486
P47
Q20667921
USER
Is Saint-Pourçain-sur-Sioule bordered by Paris ?
(Q90,P47,Q321486)
action is_in
entity Q321486
action find
entity Q90
relation P47
['Q90', 'P47', 'Q321486']
ASK WHERE { resource:Q90 property:P47 resource:Q321486 }
Paris Saint-Pourçain-sur-Sioule
action is_in
entity Saint-Pourçain-sur-Sioule
action find
entity Paris
relation shares border with
['Paris', 'shares border with', 'Saint-Pourçain-sur-Sioule']
ASK WHERE { resource:Paris property:shares_border_with resource:Saint-Pourçain-sur-Sioule }
[]
type of french administrative division
SYSTEM
NO
(Q90,P47,Q321486)
action is_in
entity Q321486
action find
entity Q90
relation P47
[ANSWER]
['Q90', 'P47', 'Q321486']
ASK WHERE { resource:Q90 property:P47 resource:Q321486 }
No
action is_in
entity Saint-Pourçain-sur-Sioule
action find
entity Paris
relation shares border with
['Paris', 'shares border with', 'Saint-Pourçain-sur-Sioule']
ASK WHERE { resource:Paris property:shares_border_with resource:Saint-Pourçain-sur-Sioule }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q90
P1376
Q15617994 Q14623646
USER
How many administrative territories and fictional organizations have Paris have their first city ?
(Q90,P1376,c(Q15617994)) (Q90,P1376,c(Q14623646))
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 Q14623646
['Q90', 'P1376', {'concept': 'Q15617994'}] ['Q90', 'P1376', {'concept': 'Q14623646'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q14623646 ) } }
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 fictional organization
['Paris', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Paris', 'capital of', {'concept': 'fictional organization'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:fictional_organization ) } }
[]
designation for an administrative territorial entity fictional organization
SYSTEM
2 administrative territories and 1 fictional organizations
Q142 Q1142326 Q1110
(Q90,P1376,c(Q15617994)) (Q90,P1376,c(Q14623646))
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 Q14623646
[ANSWER]
['Q90', 'P1376', {'concept': 'Q15617994'}] ['Q90', 'P1376', {'concept': 'Q14623646'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15617994 ) ( ontology:Q14623646 ) } }
France Seine United Federation of Planets
2 administrative territories and 1 fictional organizations
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 fictional organization
['Paris', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Paris', 'capital of', {'concept': 'fictional organization'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:fictional_organization ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q271669 Q79529 Q56061
USER
How many administrative territories are named after atleast 1 landforms and chemical substances ?
(c(Q56061),P138,c(Q271669)|c(Q79529))
action count
action atleast
action union
action find_tuple_counts
relation P138
type Q56061
type Q271669
action find_tuple_counts
relation P138
type Q56061
type Q79529
value 1
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q271669'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?d WHERE { { ?d property:P138 ?y . ?d rdf:type ontology:Q56061 . ?y rdf:type ontology:Q271669 } UNION { ?d property:P138 ?y . ?d rdf:type ontology:Q56061 . ?y rdf:type ontology:Q79529 } } GROUP BY ?d } . FILTER ( ?a >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type landform
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
value 1
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'landform'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?d WHERE { { ?d property:named_after ?y . ?d rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:landform } UNION { ?d property:named_after ?y . ?d rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:chemical_substance } } GROUP BY ?d } . FILTER ( ?a >= 1 ) }
[]
landform chemical substance administrative territorial entity
SYSTEM
5
Q3239732 Q1982848 Q2840555 Q3029792 Q103661
(c(Q56061),P138,c(Q271669)|c(Q79529))
action count
action atleast
action union
action find_tuple_counts
relation P138
type Q56061
type Q271669
action find_tuple_counts
relation P138
type Q56061
type Q79529
value 1
[ANSWER]
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q271669'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?d WHERE { { ?d property:P138 ?y . ?d rdf:type ontology:Q56061 . ?y rdf:type ontology:Q271669 } UNION { ?d property:P138 ?y . ?d rdf:type ontology:Q56061 . ?y rdf:type ontology:Q79529 } } GROUP BY ?d } . FILTER ( ?a >= 1 ) }
Sulphur New Norfolk Sint Annaparochie Nij Altoenae Apatity
5
action count
action atleast
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type landform
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
value 1
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'landform'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) ?d WHERE { { ?d property:named_after ?y . ?d rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:landform } UNION { ?d property:named_after ?y . ?d rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:chemical_substance } } GROUP BY ?d } . FILTER ( ?a >= 1 ) }
[]