Simple Question (Direct)
Simple Question
Q3260585
P27
Q15617994
USER
Which administrative territory is the native country of Louis-Henry Destel ?
(Q3260585,P27,c(Q15617994))
action filter_type
action find
entity Q3260585
relation P27
type Q15617994
['Q3260585', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q3260585 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Louis-Henry Destel
action filter_type
action find
entity Louis-Henry Destel
relation country of citizenship
type designation for an administrative territorial entity
['Louis-Henry Destel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Louis-Henry_Destel property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3260585,P27,c(Q15617994))
action filter_type
action find
entity Q3260585
relation P27
type Q15617994
[ANSWER] is the native country of Louis-Henry Destel
['Q3260585', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q3260585 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
France
France is the native country of Louis-Henry Destel
France
action filter_type
action find
entity Louis-Henry Destel
relation country of citizenship
type designation for an administrative territorial entity
['Louis-Henry Destel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Louis-Henry_Destel property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3260585
P20
Q20667921
USER
Where did the demise of that person occur ?
(Q142,P20,c(Q20667921))
action filter_type
action find
entity Q3260585
relation P20
type Q20667921
['Q142', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { resource:Q3260585 property:P20 ?n . ?n rdf:type ontology:Q20667921 }
Louis-Henry Destel
action filter_type
action find
entity Louis-Henry Destel
relation place of death
type type of french administrative division
['France', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Louis-Henry_Destel property:place_of_death ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q210776
SYSTEM
Saint-Girons
Q210776
(Q142,P20,c(Q20667921))
action filter_type
action find
entity Q3260585
relation P20
type Q20667921
The demise of that person occurred in [ANSWER]
['Q142', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?n WHERE { resource:Q3260585 property:P20 ?n . ?n rdf:type ontology:Q20667921 }
Saint-Girons
The demise of that person occurred in Saint-Girons
Saint-Girons
action filter_type
action find
entity Louis-Henry Destel
relation place of death
type type of french administrative division
['France', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?n WHERE { resource:Louis-Henry_Destel property:place_of_death ?n . ?n rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q210776 Q17019899 Q244027
P190
Q15617994
USER
Is Saint-Girons twin town of Groton Public Schools and Albese con Cassano ?
(Q210776,P190,Q17019899) (Q210776,P190,Q244027)
action is_in
entity Q210776
action intersection
action find_reverse
entity Q17019899
relation P190
action find_reverse
entity Q244027
relation P190
['Q210776', 'P190', 'Q17019899'] ['Q210776', 'P190', 'Q244027']
ASK WHERE { resource:Q210776 property:P190 resource:Q244027 . resource:Q210776 property:P190 resource:Q17019899 }
Saint-Girons Groton Public Schools Albese con Cassano
action is_in
entity Saint-Girons
action intersection
action find_reverse
entity Groton Public Schools
relation sister city
action find_reverse
entity Albese con Cassano
relation sister city
['Saint-Girons', 'sister city', 'Groton Public Schools'] ['Saint-Girons', 'sister city', 'Albese con Cassano']
ASK WHERE { resource:Saint-Girons property:sister_city resource:Albese_con_Cassano . resource:Saint-Girons property:sister_city resource:Groton_Public_Schools }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q210776,P190,Q17019899) (Q210776,P190,Q244027)
action is_in
entity Q210776
action intersection
action find_reverse
entity Q17019899
relation P190
action find_reverse
entity Q244027
relation P190
[ANSWER]
['Q210776', 'P190', 'Q17019899'] ['Q210776', 'P190', 'Q244027']
ASK WHERE { resource:Q210776 property:P190 resource:Q244027 . resource:Q210776 property:P190 resource:Q17019899 }
NO and YES respectively
action is_in
entity Saint-Girons
action intersection
action find_reverse
entity Groton Public Schools
relation sister city
action find_reverse
entity Albese con Cassano
relation sister city
['Saint-Girons', 'sister city', 'Groton Public Schools'] ['Saint-Girons', 'sister city', 'Albese con Cassano']
ASK WHERE { resource:Saint-Girons property:sister_city resource:Albese_con_Cassano . resource:Saint-Girons property:sister_city resource:Groton_Public_Schools }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19574038 Q244027
P17
Q15617994
USER
Which administrative territories are Albese con Cassano or Tuinstraat located in ?
OR((Q244027,P17,c(Q15617994)), (Q19574038,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q244027
relation P17
action find
entity Q19574038
relation P17
type Q15617994
{'OR': [['Q244027', 'P17', {'concept': 'Q15617994'}], ['Q19574038', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q19574038 property:P17 ?t } UNION { resource:Q244027 property:P17 ?t } } }
Tuinstraat Albese con Cassano
action filter_type
action union
action find
entity Albese con Cassano
relation country
action find
entity Tuinstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Albese con Cassano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tuinstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Tuinstraat property:country ?t } UNION { resource:Albese_con_Cassano property:country ?t } } }
[]
designation for an administrative territorial entity
Q38 Q55
SYSTEM
Italy, Netherlands
Q38 Q55
OR((Q244027,P17,c(Q15617994)), (Q19574038,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q244027
relation P17
action find
entity Q19574038
relation P17
type Q15617994
Albese con Cassano or Tuinstraat are located in [ANSWERS]
{'OR': [['Q244027', 'P17', {'concept': 'Q15617994'}], ['Q19574038', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q19574038 property:P17 ?t } UNION { resource:Q244027 property:P17 ?t } } }
Italy Netherlands
Albese con Cassano or Tuinstraat are located in Italy and Netherlands
Italy Netherlands
action filter_type
action union
action find
entity Albese con Cassano
relation country
action find
entity Tuinstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Albese con Cassano', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Tuinstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Tuinstraat property:country ?t } UNION { resource:Albese_con_Cassano property:country ?t } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Do Australia have diplomatic associations with those administrative territories ?
(Q408,P530,Q38) (Q408,P530,Q55)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q38'] ['Q408', 'P530', 'Q55']
ASK WHERE { resource:Q408 property:P530 ?l . VALUES ( ?l ) { ( resource:Q38 ) ( resource:Q55 ) } }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Italy'] ['Australia', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Australia property:diplomatic_relation ?l . VALUES ( ?l ) { ( resource:Italy ) ( resource:Netherlands ) } }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q38) (Q408,P530,Q55)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q38'] ['Q408', 'P530', 'Q55']
ASK WHERE { resource:Q408 property:P530 ?l . VALUES ( ?l ) { ( resource:Q38 ) ( resource:Q55 ) } }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Italy'] ['Australia', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Australia property:diplomatic_relation ?l . VALUES ( ?l ) { ( resource:Italy ) ( resource:Netherlands ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1328771 Q17019899
P27 P17
Q15617994
USER
Which administrative territories do Groton Public Schools belong to and are Uzodinma Iweala a civilian of ?
AND((Q17019899,P17,c(Q15617994)), (Q1328771,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q17019899
relation P17
action find
entity Q1328771
relation P27
type Q15617994
{'AND': [['Q17019899', 'P17', {'concept': 'Q15617994'}], ['Q1328771', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { resource:Q17019899 property:P17 ?u . resource:Q1328771 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Uzodinma Iweala Groton Public Schools
action filter_type
action intersection
action find
entity Groton Public Schools
relation country
action find
entity Uzodinma Iweala
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Groton Public Schools', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Uzodinma Iweala', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Groton_Public_Schools property:country ?u . resource:Uzodinma_Iweala property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q17019899,P17,c(Q15617994)), (Q1328771,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q17019899
relation P17
action find
entity Q1328771
relation P27
type Q15617994
Groton Public Schools belong to the [ANSWER] and are Uzodinma Iweala a civilian of
{'AND': [['Q17019899', 'P17', {'concept': 'Q15617994'}], ['Q1328771', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { resource:Q17019899 property:P17 ?u . resource:Q1328771 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
United States of America
Groton Public Schools belong to the United States of America and are Uzodinma Iweala a civilian of
United States of America
action filter_type
action intersection
action find
entity Groton Public Schools
relation country
action find
entity Uzodinma Iweala
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Groton Public Schools', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Uzodinma Iweala', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Groton_Public_Schools property:country ?u . resource:Uzodinma_Iweala property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with approximately 5 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 5
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?f = 5 ) . { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?f ) WHERE { ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 . ?s property:P530 ?m } GROUP BY ?s } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?f = 5 ) . { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?f ) WHERE { ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?m } GROUP BY ?s } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 5
[ANSWERS] have ambassadorial relations with approximately 5 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?f = 5 ) . { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?f ) WHERE { ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 . ?s property:P530 ?m } GROUP BY ?s } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have ambassadorial relations with approximately 5 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?f = 5 ) . { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?f ) WHERE { ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?m } GROUP BY ?s } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q35 Q16 Q40
P840
Q2342494
USER
Which collectables have their narrative set in Denmark, Canada and Austria ?
(c(Q2342494),P840,Q35) (c(Q2342494),P840,Q16) (c(Q2342494),P840,Q40)
action union
action filter_type
action find_reverse
entity Q35
relation P840
type Q2342494
action filter_type
action find_reverse
entity Q16
relation P840
type Q2342494
action filter_type
action find_reverse
entity Q40
relation P840
type Q2342494
[{'concept': 'Q2342494'}, 'P840', 'Q35'] [{'concept': 'Q2342494'}, 'P840', 'Q16'] [{'concept': 'Q2342494'}, 'P840', 'Q40']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:Q35 ) ( resource:Q16 ) } . ?m property:P840 ?y }
Denmark Canada Austria
action union
action filter_type
action find_reverse
entity Denmark
relation narrative location
type collectable
action filter_type
action find_reverse
entity Canada
relation narrative location
type collectable
action filter_type
action find_reverse
entity Austria
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'Denmark'] [{'concept': 'collectable'}, 'narrative location', 'Canada'] [{'concept': 'collectable'}, 'narrative location', 'Austria']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:Denmark ) ( resource:Canada ) } . ?m property:narrative_location ?y }
[]
collectable
Q1150003 Q3563367 Q10428817
SYSTEM
César Cascabel, Voyage to the Orient, Berts bravader
Q10428817 Q10428760 Q1150003 Q22810454 Q19231924 Q3563367
(c(Q2342494),P840,Q35) (c(Q2342494),P840,Q16) (c(Q2342494),P840,Q40)
action union
action filter_type
action find_reverse
entity Q35
relation P840
type Q2342494
action filter_type
action find_reverse
entity Q16
relation P840
type Q2342494
action filter_type
action find_reverse
entity Q40
relation P840
type Q2342494
[ANSWERS] have their narrative set in Denmark, Canada and Austria
[{'concept': 'Q2342494'}, 'P840', 'Q35'] [{'concept': 'Q2342494'}, 'P840', 'Q16'] [{'concept': 'Q2342494'}, 'P840', 'Q40']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:Q35 ) ( resource:Q16 ) } . ?m property:P840 ?y }
Berts bravader Bert och brorsorna César Cascabel The North-West Passage by Land Si les Canadiennes le voulaient Voyage to the Orient
César Cascabel, Voyage to the Orient and Berts bravader have their narrative set in Denmark, Canada and Austria
César Cascabel Voyage to the Orient Berts bravader
action union
action filter_type
action find_reverse
entity Denmark
relation narrative location
type collectable
action filter_type
action find_reverse
entity Canada
relation narrative location
type collectable
action filter_type
action find_reverse
entity Austria
relation narrative location
type collectable
[{'concept': 'collectable'}, 'narrative location', 'Denmark'] [{'concept': 'collectable'}, 'narrative location', 'Canada'] [{'concept': 'collectable'}, 'narrative location', 'Austria']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:Denmark ) ( resource:Canada ) } . ?m property:narrative_location ?y }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3563367
P50
Q502895
USER
Who wrote that collectable ?
(Q3563367,P50,c(Q502895))
action filter_type
action find
entity Q3563367
relation P50
type Q502895
['Q3563367', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q3563367 property:P50 ?s }
Voyage to the Orient
action filter_type
action find
entity Voyage to the Orient
relation author
type common name
['Voyage to the Orient', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Voyage_to_the_Orient property:author ?s }
[]
common name
Clarification for simple ques.
Q10428817
SYSTEM
Did you mean Berts bravader ?
Q1150003 Q3563367 Q10428817
(Q1150003,P50,c(Q502895)) (Q3563367,P50,c(Q502895)) (Q10428817,P50,c(Q502895))
[ANSWER]
['Q1150003', 'P50', {'concept': 'Q502895'}] ['Q3563367', 'P50', {'concept': 'Q502895'}] ['Q10428817', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q3563367 property:P50 ?s }
César Cascabel Voyage to the Orient Berts bravader
Did you mean Berts bravader ?
Berts bravader
['César Cascabel', 'author', {'concept': 'common name'}] ['Voyage to the Orient', 'author', {'concept': 'common name'}] ['Berts bravader', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Voyage_to_the_Orient property:author ?s }
[]
Simple Question (Coreferenced)
USER
No, I meant Voyage to the Orient. Could you tell me the answer for that?
(Q3563367,P50,c(Q502895))
Q3563367
['Q3563367', 'P50', {'concept': 'Q502895'}]
['Voyage to the Orient', 'author', {'concept': 'common name'}]
[]
Q191305
SYSTEM
Gérard de Nerval
Q191305
(Q3563367,P50,c(Q502895))
action filter_type
action find
entity Q3563367
relation P50
type Q502895
[ANSWER] wrote that collectable
['Q3563367', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q3563367 property:P50 ?s }
Gérard de Nerval
Gérard de Nerval wrote that collectable
Gérard de Nerval
action filter_type
action find
entity Voyage to the Orient
relation author
type common name
['Voyage to the Orient', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Voyage_to_the_Orient property:author ?s }
[]