Simple Question (Direct)
Simple Question
Q16538609
P9
Q502895
USER
Who have Charles de France as thier sibling ?
(Q16538609,P9,c(Q502895))
action filter_type
action find
entity Q16538609
relation P9
type Q502895
['Q16538609', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q16538609 property:P9 ?f . ?f rdf:type ontology:Q502895 }
Charles de France
action filter_type
action find
entity Charles de France
relation sister
type common name
['Charles de France', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Charles_de_France property:sister ?f . ?f rdf:type ontology:common_name }
[]
common name
Q229208 Q235841
SYSTEM
Claude of France, Renée of France
Q229208 Q235841
(Q16538609,P9,c(Q502895))
action filter_type
action find
entity Q16538609
relation P9
type Q502895
[ANSWERS] have Charles de France as thier sibling
['Q16538609', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q16538609 property:P9 ?f . ?f rdf:type ontology:Q502895 }
Claude of France Renée of France
Claude of France and Renée of France have Charles de France as thier sibling
Claude of France Renée of France
action filter_type
action find
entity Charles de France
relation sister
type common name
['Charles de France', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Charles_de_France property:sister ?f . ?f rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q235841
P40
Q502895
USER
Who have that one as an offspring ?
(c(Q502895),P40,Q235841)
action filter_type
action find_reverse
entity Q235841
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q235841']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P40 resource:Q235841 }
Renée of France
action filter_type
action find_reverse
entity Renée of France
relation child
type common name
[{'concept': 'common name'}, 'child', 'Renée of France']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:child resource:Renée_of_France }
[]
common name
Clarification for simple ques.
Q229208
SYSTEM
Did you mean Claude of France ?
Q229208 Q235841
(c(Q502895),P40,Q229208) (c(Q502895),P40,Q235841)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q229208'] [{'concept': 'Q502895'}, 'P40', 'Q235841']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P40 resource:Q235841 }
Claude of France Renée of France
Did you mean Claude of France ?
Claude of France
[{'concept': 'common name'}, 'child', 'Claude of France'] [{'concept': 'common name'}, 'child', 'Renée of France']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:child resource:Renée_of_France }
[]
Simple Question (Coreferenced)
USER
No, I meant Renée of France. Could you tell me the answer for that?
(c(Q502895),P40,Q235841)
Q235841
[{'concept': 'Q502895'}, 'P40', 'Q235841']
[{'concept': 'common name'}, 'child', 'Renée of France']
[]
Q201143 Q58514
SYSTEM
Anne of Brittany, Louis XII of France
Q201143 Q58514
(c(Q502895),P40,Q235841)
action filter_type
action find_reverse
entity Q235841
relation P40
type Q502895
[ANSWERS] have that one as an offspring
[{'concept': 'Q502895'}, 'P40', 'Q235841']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . ?u property:P40 resource:Q235841 }
Anne of Brittany Louis XII of France
Anne of Brittany and Louis XII of France have that one as an offspring
Anne of Brittany Louis XII of France
action filter_type
action find_reverse
entity Renée of France
relation child
type common name
[{'concept': 'common name'}, 'child', 'Renée of France']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . ?u property:child resource:Renée_of_France }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can around 948 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 948
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?p ) WHERE { ?x rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 . ?m property:P1303 ?x } GROUP BY ?x } . FILTER ( ?p = 948 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 948
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?p ) WHERE { ?x rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name . ?m property:instrument ?x } GROUP BY ?x } . FILTER ( ?p = 948 ) }
[]
musical instrument common name
SYSTEM
63
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 948
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?p ) WHERE { ?x rdf:type ontology:Q34379 . ?m rdf:type ontology:Q502895 . ?m property:P1303 ?x } GROUP BY ?x } . FILTER ( ?p = 948 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
63
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 948
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?m ) AS ?p ) WHERE { ?x rdf:type ontology:musical_instrument . ?m rdf:type ontology:common_name . ?m property:instrument ?x } GROUP BY ?x } . FILTER ( ?p = 948 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q229208
P20
Q20667921
USER
Where did Claude of France die ?
(Q229208,P20,c(Q20667921))
action filter_type
action find
entity Q229208
relation P20
type Q20667921
['Q229208', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { resource:Q229208 property:P20 ?n . ?n rdf:type ontology:Q20667921 }
Claude of France
action filter_type
action find
entity Claude of France
relation place of death
type type of french administrative division
['Claude of France', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Claude_of_France property:place_of_death ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q160927
SYSTEM
Blois
Q160927
(Q229208,P20,c(Q20667921))
action filter_type
action find
entity Q229208
relation P20
type Q20667921
Claude of France died at [ANSWER]
['Q229208', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { resource:Q229208 property:P20 ?n . ?n rdf:type ontology:Q20667921 }
Blois
Claude of France died at Blois
Blois
action filter_type
action find
entity Claude of France
relation place of death
type type of french administrative division
['Claude of France', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Claude_of_France property:place_of_death ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3807639
Q20667921
USER
And what about Jean Baptiste Félix Descuret?
(Q3807639,P20,c(Q20667921))
action filter_type
action find
entity Q3807639
relation P20
type Q20667921
['Q3807639', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q20667921 . resource:Q3807639 property:P20 ?r }
Jean Baptiste Félix Descuret
action filter_type
action find
entity Jean Baptiste Félix Descuret
relation place of death
type type of french administrative division
['Jean Baptiste Félix Descuret', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_french_administrative_division . resource:Jean_Baptiste_Félix_Descuret property:place_of_death ?r }
[]
type of french administrative division
Q534664
SYSTEM
Châtillon, Rhône
Q534664
(Q3807639,P20,c(Q20667921))
action filter_type
action find
entity Q3807639
relation P20
type Q20667921
[ANSWER]
['Q3807639', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q20667921 . resource:Q3807639 property:P20 ?r }
Châtillon, Rhône
Châtillon, Rhône
action filter_type
action find
entity Jean Baptiste Félix Descuret
relation place of death
type type of french administrative division
['Jean Baptiste Félix Descuret', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:type_of_french_administrative_division . resource:Jean_Baptiste_Félix_Descuret property:place_of_death ?r }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q534664 Q1141089
P47
Q20667921
USER
Does Feusines share border with Châtillon, Rhône ?
(Q534664,P47,Q1141089)
action is_in
entity Q1141089
action find
entity Q534664
relation P47
['Q534664', 'P47', 'Q1141089']
ASK WHERE { resource:Q534664 property:P47 resource:Q1141089 }
Châtillon, Rhône Feusines
action is_in
entity Feusines
action find
entity Châtillon, Rhône
relation shares border with
['Châtillon, Rhône', 'shares border with', 'Feusines']
ASK WHERE { resource:Châtillon,_Rhône property:shares_border_with resource:Feusines }
[]
type of french administrative division
SYSTEM
NO
(Q534664,P47,Q1141089)
action is_in
entity Q1141089
action find
entity Q534664
relation P47
[ANSWER]
['Q534664', 'P47', 'Q1141089']
ASK WHERE { resource:Q534664 property:P47 resource:Q1141089 }
No
action is_in
entity Feusines
action find
entity Châtillon, Rhône
relation shares border with
['Châtillon, Rhône', 'shares border with', 'Feusines']
ASK WHERE { resource:Châtillon,_Rhône property:shares_border_with resource:Feusines }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12006933 Q58514
P27
Q15617994
USER
Which administrative territories do Louis XII of France or Torbjørn Willassen belong to ?
OR((Q58514,P27,c(Q15617994)), (Q12006933,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q58514
relation P27
action find
entity Q12006933
relation P27
type Q15617994
{'OR': [['Q58514', 'P27', {'concept': 'Q15617994'}], ['Q12006933', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?k ) { ( resource:Q58514 ) ( resource:Q12006933 ) } . ?k property:P27 ?x } . ?x rdf:type ontology:Q15617994 }
Torbjørn Willassen Louis XII of France
action filter_type
action union
action find
entity Louis XII of France
relation country of citizenship
action find
entity Torbjørn Willassen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Louis XII of France', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Torbjørn Willassen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?k ) { ( resource:Louis_XII_of_France ) ( resource:Torbjørn_Willassen ) } . ?k property:country_of_citizenship ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q20
SYSTEM
France, Norway
Q142 Q20
OR((Q58514,P27,c(Q15617994)), (Q12006933,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q58514
relation P27
action find
entity Q12006933
relation P27
type Q15617994
Louis XII of France or Torbjørn Willassen belong to [ANSWERS]
{'OR': [['Q58514', 'P27', {'concept': 'Q15617994'}], ['Q12006933', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?k ) { ( resource:Q58514 ) ( resource:Q12006933 ) } . ?k property:P27 ?x } . ?x rdf:type ontology:Q15617994 }
France Norway
Louis XII of France or Torbjørn Willassen belong to France and Norway
France Norway
action filter_type
action union
action find
entity Louis XII of France
relation country of citizenship
action find
entity Torbjørn Willassen
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Louis XII of France', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Torbjørn Willassen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?k ) { ( resource:Louis_XII_of_France ) ( resource:Torbjørn_Willassen ) } . ?k property:country_of_citizenship ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q889
P530
Q15617994
USER
How many administrative territories have ambassadorial relations with France and Afghanistan ?
(c(Q15617994),P530,Q142) (c(Q15617994),P530,Q889)
action count
action intersection
action filter_type
action find_reverse
entity Q142
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q889
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q142'] [{'concept': 'Q15617994'}, 'P530', 'Q889']
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P530 resource:Q142 . ?o rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 . ?o property:P530 resource:Q889 }
France Afghanistan
action count
action intersection
action filter_type
action find_reverse
entity France
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Afghanistan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'France'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Afghanistan']
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:diplomatic_relation resource:France . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation resource:Afghanistan }
[]
designation for an administrative territorial entity
SYSTEM
2
Q38 Q222
(c(Q15617994),P530,Q142) (c(Q15617994),P530,Q889)
action count
action intersection
action filter_type
action find_reverse
entity Q142
relation P530
type Q15617994
action filter_type
action find_reverse
entity Q889
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', 'Q142'] [{'concept': 'Q15617994'}, 'P530', 'Q889']
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P530 resource:Q142 . ?o rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 . ?o property:P530 resource:Q889 }
Italy Albania
2
action count
action intersection
action filter_type
action find_reverse
entity France
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Afghanistan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'France'] [{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Afghanistan']
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:diplomatic_relation resource:France . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation resource:Afghanistan }
[]