Simple Question (Direct)
Simple Question
Q609851
P47
Q20667921
USER
Who share the border with Sazeret ?
(Q609851,P47,c(Q20667921))
action filter_type
action find
entity Q609851
relation P47
type Q20667921
['Q609851', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q20667921 . resource:Q609851 property:P47 ?v }
Sazeret
action filter_type
action find
entity Sazeret
relation shares border with
type type of french administrative division
['Sazeret', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:type_of_french_administrative_division . resource:Sazeret property:shares_border_with ?v }
[]
type of french administrative division
Q378884 Q454539 Q325578
SYSTEM
Voussac, Saint-Bonnet-de-Four, Deux-Chaises
Q325525 Q454539 Q378884 Q772189 Q272936 Q243916 Q325578
(Q609851,P47,c(Q20667921))
action filter_type
action find
entity Q609851
relation P47
type Q20667921
[ANSWERS] share the border with Sazeret
['Q609851', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q20667921 . resource:Q609851 property:P47 ?v }
Montmarault Saint-Bonnet-de-Four Voussac Saint-Priest-en-Murat Saint-Marcel-en-Murat Chappes Deux-Chaises
Voussac, Saint-Bonnet-de-Four and Deux-Chaises share the border with Sazeret
Voussac Saint-Bonnet-de-Four Deux-Chaises
action filter_type
action find
entity Sazeret
relation shares border with
type type of french administrative division
['Sazeret', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:type_of_french_administrative_division . resource:Sazeret property:shares_border_with ?v }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q378884 Q454539 Q325578
P47
Q20667921
USER
Which french administrative divisions share border with those ones ?
(c(Q20667921),P47,Q378884) (c(Q20667921),P47,Q454539) (c(Q20667921),P47,Q325578)
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q378884'] [{'concept': 'Q20667921'}, 'P47', 'Q454539'] [{'concept': 'Q20667921'}, 'P47', 'Q325578']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q20667921 . ?d property:P47 ?g . VALUES ( ?d ) { ( resource:Q325525 ) ( resource:Q454539 ) ( resource:Q378884 ) } }
Voussac Saint-Bonnet-de-Four Deux-Chaises
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Voussac'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Bonnet-de-Four'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Deux-Chaises']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:type_of_french_administrative_division . ?d property:shares_border_with ?g . VALUES ( ?d ) { ( resource:Montmarault ) ( resource:Saint-Bonnet-de-Four ) ( resource:Voussac ) } }
[]
type of french administrative division
Q867928 Q272557 Q843066
SYSTEM
Fleuriel, Tronget, Monestier
Q325578 Q655428 Q843066 Q865563 Q272936 Q609851 Q867928 Q848671 Q325525 Q853534 Q772189 Q865645 Q325604 Q609851 Q243916 Q655428 Q272842 Q378884 Q609851 Q325783 Q272557
(c(Q20667921),P47,Q378884) (c(Q20667921),P47,Q454539) (c(Q20667921),P47,Q325578)
action filter_type
action find
entity prev_answer
relation P47
type Q20667921
[ANSWERS] share border with those ones
[{'concept': 'Q20667921'}, 'P47', 'Q378884'] [{'concept': 'Q20667921'}, 'P47', 'Q454539'] [{'concept': 'Q20667921'}, 'P47', 'Q325578']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q20667921 . ?d property:P47 ?g . VALUES ( ?d ) { ( resource:Q325525 ) ( resource:Q454539 ) ( resource:Q378884 ) } }
Deux-Chaises Le Theil Monestier Target Saint-Marcel-en-Murat Sazeret Fleuriel Blomard Montmarault Bézenet Saint-Priest-en-Murat Louroux-de-Beaune Beaune-d'Allier Sazeret Chappes Le Theil Saint-Sornin Voussac Sazeret Le Montet Tronget
Fleuriel, Tronget and Monestier share border with those ones
Fleuriel Tronget Monestier
action filter_type
action find
entity prev_answer
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Voussac'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Bonnet-de-Four'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Deux-Chaises']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:type_of_french_administrative_division . ?d property:shares_border_with ?g . VALUES ( ?d ) { ( resource:Montmarault ) ( resource:Saint-Bonnet-de-Four ) ( resource:Voussac ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q867928 Q272557 Q843066
P47
Q20667921
USER
Which french administrative divisions do Fleuriel, Tronget and Monestier share a border with ?
(c(Q20667921),P47,Q867928) (c(Q20667921),P47,Q272557) (c(Q20667921),P47,Q843066)
action union
action filter_type
action find
entity Q867928
relation P47
type Q20667921
action filter_type
action find
entity Q272557
relation P47
type Q20667921
action filter_type
action find
entity Q843066
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q867928'] [{'concept': 'Q20667921'}, 'P47', 'Q272557'] [{'concept': 'Q20667921'}, 'P47', 'Q843066']
SELECT DISTINCT ?f WHERE { ?w property:P47 ?f . VALUES ( ?w ) { ( resource:Q867928 ) ( resource:Q272557 ) } }
Fleuriel Tronget Monestier
action union
action filter_type
action find
entity Fleuriel
relation shares border with
type type of french administrative division
action filter_type
action find
entity Tronget
relation shares border with
type type of french administrative division
action filter_type
action find
entity Monestier
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Fleuriel'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Tronget'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Monestier']
SELECT DISTINCT ?f WHERE { ?w property:shares_border_with ?f . VALUES ( ?w ) { ( resource:Fleuriel ) ( resource:Tronget ) } }
[]
type of french administrative division
Q867928 Q263971 Q843066
SYSTEM
Fleuriel, Bellenaves, Monestier
Q845221 Q731302 Q655428 Q845315 Q666272 Q843066 Q259376 Q378884 Q532088 Q845228 Q325578 Q511012 Q655428 Q845165 Q867773 Q325783 Q272802 Q845202 Q263971 Q842739 Q865563 Q259376 Q378884 Q845175 Q532088 Q867928
(c(Q20667921),P47,Q867928) (c(Q20667921),P47,Q272557) (c(Q20667921),P47,Q843066)
action union
action filter_type
action find
entity Q867928
relation P47
type Q20667921
action filter_type
action find
entity Q272557
relation P47
type Q20667921
action filter_type
action find
entity Q843066
relation P47
type Q20667921
[ANSWERS] Fleuriel, Tronget and Monestier share a border with
[{'concept': 'Q20667921'}, 'P47', 'Q867928'] [{'concept': 'Q20667921'}, 'P47', 'Q272557'] [{'concept': 'Q20667921'}, 'P47', 'Q843066']
SELECT DISTINCT ?f WHERE { ?w property:P47 ?f . VALUES ( ?w ) { ( resource:Q867928 ) ( resource:Q272557 ) } }
Chareil-Cintrat Laféline Le Theil Cesset Fourilles Monestier Chantelle Voussac Deneuille-lès-Chantelle Cressanges Deux-Chaises Rocles Le Theil Gipcy Noyant-d'Allier Le Montet Treban Châtillon Bellenaves Chirat-l'Église Target Chantelle Voussac Chezelle Deneuille-lès-Chantelle Fleuriel
Fleuriel, Bellenaves and Monestier Fleuriel, Tronget and Monestier share a border with
Fleuriel Bellenaves Monestier
action union
action filter_type
action find
entity Fleuriel
relation shares border with
type type of french administrative division
action filter_type
action find
entity Tronget
relation shares border with
type type of french administrative division
action filter_type
action find
entity Monestier
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Fleuriel'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Tronget'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Monestier']
SELECT DISTINCT ?f WHERE { ?w property:shares_border_with ?f . VALUES ( ?w ) { ( resource:Fleuriel ) ( resource:Tronget ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q867928 Q263971 Q843066
P17
Q15617994
USER
Which administrative territories are those french administrative divisions a part of ?
(Q867928,P17,c(Q15617994)) (Q263971,P17,c(Q15617994)) (Q843066,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q867928', 'P17', {'concept': 'Q15617994'}] ['Q263971', 'P17', {'concept': 'Q15617994'}] ['Q843066', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?g ) { ( resource:Q845221 ) ( resource:Q731302 ) ( resource:Q655428 ) } . ?g property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Fleuriel Bellenaves Monestier
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Fleuriel', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bellenaves', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Monestier', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?g ) { ( resource:Chareil-Cintrat ) ( resource:Laféline ) ( resource:Le_Theil ) } . ?g property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q142 Q142
SYSTEM
France
Q142 Q142 Q142
(Q867928,P17,c(Q15617994)) (Q263971,P17,c(Q15617994)) (Q843066,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWER], [ANSWER] and [ANSWER] are those french administrative divisions a part of
['Q867928', 'P17', {'concept': 'Q15617994'}] ['Q263971', 'P17', {'concept': 'Q15617994'}] ['Q843066', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?g ) { ( resource:Q845221 ) ( resource:Q731302 ) ( resource:Q655428 ) } . ?g property:P17 ?i . ?i rdf:type ontology:Q15617994 }
France France France
France, France and France are those french administrative divisions a part of
France France France
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Fleuriel', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Bellenaves', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Monestier', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?g ) { ( resource:Chareil-Cintrat ) ( resource:Laféline ) ( resource:Le_Theil ) } . ?g property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q867928
P6
Q502895
USER
Which person does Fleuriel serve as the head of government for ?
(Q867928,P6,c(Q502895))
action filter_type
action find
entity Q867928
relation P6
type Q502895
['Q867928', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q867928 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Fleuriel
action filter_type
action find
entity Fleuriel
relation head of government
type common name
['Fleuriel', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Fleuriel property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
common name
Q8318757
SYSTEM
Émile Bourgier
Q8318757
(Q867928,P6,c(Q502895))
action filter_type
action find
entity Q867928
relation P6
type Q502895
Fleuriel serves with [ANSWER] as the head of government
['Q867928', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { resource:Q867928 property:P6 ?a . ?a rdf:type ontology:Q502895 }
Émile Bourgier
Fleuriel serves with Émile Bourgier as the head of government
Émile Bourgier
action filter_type
action find
entity Fleuriel
relation head of government
type common name
['Fleuriel', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { resource:Fleuriel property:head_of_government ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q378884
P190
Q20667921
USER
Which french administrative division is sister town of Voussac ?
(c(Q20667921),P190,Q378884)
action filter_type
action find
entity Q378884
relation P190
type Q20667921
[{'concept': 'Q20667921'}, 'P190', 'Q378884']
SELECT DISTINCT ?s WHERE { resource:Q378884 property:P190 ?s . ?s rdf:type ontology:Q20667921 }
Voussac
action filter_type
action find
entity Voussac
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Voussac']
SELECT DISTINCT ?s WHERE { resource:Voussac property:sister_city ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q21710
SYSTEM
Xanrey
Q21710
(c(Q20667921),P190,Q378884)
action filter_type
action find
entity Q378884
relation P190
type Q20667921
[ANSWER] is sister town of Voussac
[{'concept': 'Q20667921'}, 'P190', 'Q378884']
SELECT DISTINCT ?s WHERE { resource:Q378884 property:P190 ?s . ?s rdf:type ontology:Q20667921 }
Xanrey
Xanrey is sister town of Voussac
Xanrey
action filter_type
action find
entity Voussac
relation sister city
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'sister city', 'Voussac']
SELECT DISTINCT ?s WHERE { resource:Voussac property:sister_city ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P36
Q515 Q486972 Q15617994
USER
Which administrative territories are max number of cities or human settlements the capital of ?
(c(Q15617994),P36,c(Q515)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q515
action find_tuple_counts
relation P36
type Q15617994
type Q486972
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q515'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?x ) WHERE { { ?k property:P36 ?z . ?k rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q515 } UNION { ?k property:P36 ?z . ?k rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q486972 } } GROUP BY ?k } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?u ) WHERE { { ?b property:P36 ?v . ?v rdf:type ontology:Q515 . ?b rdf:type ontology:Q15617994 } UNION { ?b property:P36 ?v . ?b rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q486972 } } GROUP BY ?b } }
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'city'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?x ) WHERE { { ?k property:capital ?z . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:city } UNION { ?k property:capital ?z . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:human_settlement } } GROUP BY ?k } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?u ) WHERE { { ?b property:capital ?v . ?v rdf:type ontology:city . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b property:capital ?v . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:human_settlement } } GROUP BY ?b } }
[]
city human settlement designation for an administrative territorial entity
Q252
SYSTEM
Indonesia
Q252
(c(Q15617994),P36,c(Q515)|c(Q486972))
action argmax
action union
action find_tuple_counts
relation P36
type Q15617994
type Q515
action find_tuple_counts
relation P36
type Q15617994
type Q486972
Max number of cities or human settlements the capital of are in [ANSWER]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q515'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?x ) WHERE { { ?k property:P36 ?z . ?k rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q515 } UNION { ?k property:P36 ?z . ?k rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q486972 } } GROUP BY ?k } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?u ) WHERE { { ?b property:P36 ?v . ?v rdf:type ontology:Q515 . ?b rdf:type ontology:Q15617994 } UNION { ?b property:P36 ?v . ?b rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q486972 } } GROUP BY ?b } }
Indonesia
Max number of cities or human settlements the capital of are in Indonesia
Indonesia
action argmax
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type city
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'city'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?n ) { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?x ) WHERE { { ?k property:capital ?z . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:city } UNION { ?k property:capital ?z . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:human_settlement } } GROUP BY ?k } } . FILTER ( ?u = ?n ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?u ) WHERE { { ?b property:capital ?v . ?v rdf:type ontology:city . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?b property:capital ?v . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:human_settlement } } GROUP BY ?b } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q252
P1532
Q6979593
USER
Who plays for that administrative territory ?
(c(Q6979593),P1532,Q252)
action filter_type
action find_reverse
entity Q252
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q252']
SELECT DISTINCT ?y WHERE { ?y property:P1532 resource:Q252 . ?y rdf:type ontology:Q6979593 }
Indonesia
action filter_type
action find_reverse
entity Indonesia
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Indonesia']
SELECT DISTINCT ?y WHERE { ?y property:country_for_sport resource:Indonesia . ?y rdf:type ontology:national_association_football_team }
[]
national association football team
Q3272573
SYSTEM
Indonesia women's national football team
Q3272573
(c(Q6979593),P1532,Q252)
action filter_type
action find_reverse
entity Q252
relation P1532
type Q6979593
And [ANSWER] plays for that administrative territory
[{'concept': 'Q6979593'}, 'P1532', 'Q252']
SELECT DISTINCT ?y WHERE { ?y property:P1532 resource:Q252 . ?y rdf:type ontology:Q6979593 }
Indonesia women's national football team
And Indonesia women's national football team plays for that administrative territory
Indonesia women's national football team
action filter_type
action find_reverse
entity Indonesia
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Indonesia']
SELECT DISTINCT ?y WHERE { ?y property:country_for_sport resource:Indonesia . ?y rdf:type ontology:national_association_football_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q252
P463
Q180684
USER
Which conflict was that administrative territory a member of ?
(Q3272573,P463,c(Q180684))
action filter_type
action find
entity Q252
relation P463
type Q180684
['Q3272573', 'P463', {'concept': 'Q180684'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q180684 . resource:Q252 property:P463 ?c }
Indonesia
action filter_type
action find
entity Indonesia
relation member of
type conflict
["Indonesia women's national football team", 'member of', {'concept': 'conflict'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:conflict . resource:Indonesia property:member_of ?c }
[]
conflict
Q384535
SYSTEM
African Union – United Nations Hybrid Operation in Darfur
Q384535
(Q3272573,P463,c(Q180684))
action filter_type
action find
entity Q252
relation P463
type Q180684
Which conflict was that administrative territory a member of
['Q3272573', 'P463', {'concept': 'Q180684'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q180684 . resource:Q252 property:P463 ?c }
African Union – United Nations Hybrid Operation in Darfur
Which conflict was that administrative territory a member of
African Union – United Nations Hybrid Operation in Darfur
action filter_type
action find
entity Indonesia
relation member of
type conflict
["Indonesia women's national football team", 'member of', {'concept': 'conflict'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:conflict . resource:Indonesia property:member_of ?c }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P361
Q198 Q180684
USER
Which wars are atmost 8 conflicts a component of ?
(c(Q180684),P361,c(Q198))
action atmost
action find_reverse_tuple_counts
relation P361
type Q198
type Q180684
value 8
[{'concept': 'Q180684'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?b <= 8 ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:P361 ?h . ?z rdf:type ontology:Q180684 . ?h rdf:type ontology:Q198 } GROUP BY ?h } }
action atmost
action find_reverse_tuple_counts
relation part of
type war
type conflict
value 8
[{'concept': 'conflict'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?b <= 8 ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:part_of ?h . ?z rdf:type ontology:conflict . ?h rdf:type ontology:war } GROUP BY ?h } }
[]
war conflict
Q545449 Q17984356 Q17507684
SYSTEM
Iraq War, Iraqi Civil War, military intervention against ISIL
Q8683 Q211855 Q4783165 Q795269 Q3778746 Q920894 Q81545 Q10859 Q18121212 Q361 Q1021160 Q17984356 Q1072889 Q1758829 Q209297 Q242352 Q2105495 Q5334383 Q178810 Q545449 Q2658255 Q16954835 Q208484 Q1432624 Q2086498 Q1238338 Q15059994 Q1049945 Q8676 Q1127302 Q1052332 Q475678 Q743768 Q213394 Q17507684 Q179975 Q18159629 Q2672972 Q243620 Q79911
(c(Q180684),P361,c(Q198))
action atmost
action find_reverse_tuple_counts
relation P361
type Q198
type Q180684
value 8
[ANSWERS] are atmost 8 conflicts a component of
[{'concept': 'Q180684'}, 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?b <= 8 ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:P361 ?h . ?z rdf:type ontology:Q180684 . ?h rdf:type ontology:Q198 } GROUP BY ?h } }
Cold War Finnish Civil War Arab Cold War Sierra Leone Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War Spanish Civil War American-led intervention in Syria World War I Armagnac–Burgundian Civil War Iraqi Civil War Chilean War of Independence urban guerrilla warfare Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Ecuadorian War of Independence Syrian Civil War Iraq War Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War Genkō War First Barons' War Caesar's Civil War Iran–Israel proxy conflict Jacobite rising of 1745 American Civil War Estonian War of Independence War in Somalia Mexican Drug War The Anarchy Sri Lankan Civil War military intervention against ISIL Chinese Civil War American-led intervention in Iraq Uruguayan Civil War Somali Civil War Russian Civil War
Iraq War, Iraqi Civil War and military intervention against ISIL are atmost 8 conflicts a component of
Iraq War Iraqi Civil War military intervention against ISIL
action atmost
action find_reverse_tuple_counts
relation part of
type war
type conflict
value 8
[{'concept': 'conflict'}, 'part of', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?b <= 8 ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?b ) WHERE { ?z property:part_of ?h . ?z rdf:type ontology:conflict . ?h rdf:type ontology:war } GROUP BY ?h } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q545449 Q17984356 Q17507684
P361
Q1190554
USER
Which events are a portion of those wars ?
(c(Q1190554),P361,Q545449) (c(Q1190554),P361,Q17984356) (c(Q1190554),P361,Q17507684)
action filter_type
action find_reverse
entity prev_answer
relation P361
type Q1190554
[{'concept': 'Q1190554'}, 'P361', 'Q545449'] [{'concept': 'Q1190554'}, 'P361', 'Q17984356'] [{'concept': 'Q1190554'}, 'P361', 'Q17507684']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1190554 . ?p property:P361 ?c . VALUES ( ?c ) { ( resource:Q8683 ) ( resource:Q211855 ) ( resource:Q4783165 ) } }
Iraq War Iraqi Civil War military intervention against ISIL
action filter_type
action find_reverse
entity prev_answer
relation part of
type event
[{'concept': 'event'}, 'part of', 'Iraq War'] [{'concept': 'event'}, 'part of', 'Iraqi Civil War'] [{'concept': 'event'}, 'part of', 'military intervention against ISIL']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:event . ?p property:part_of ?c . VALUES ( ?c ) { ( resource:Cold_War ) ( resource:Finnish_Civil_War ) ( resource:Arab_Cold_War ) } }
[]
event
Q2888122 Q2237268 Q2889462
SYSTEM
Battle of Basra, Battle of Umm Qasr, battle of Najaf
Q2889747 Q1975663 Q2237268 Q2888122 Q2889462 Q2068122 Q19407785 Q19799151 Q17621839 Q18711555 Q18385556 Q18208094
(c(Q1190554),P361,Q545449) (c(Q1190554),P361,Q17984356) (c(Q1190554),P361,Q17507684)
action filter_type
action find_reverse
entity prev_answer
relation P361
type Q1190554
[ANSWERS] are a portion of those wars
[{'concept': 'Q1190554'}, 'P361', 'Q545449'] [{'concept': 'Q1190554'}, 'P361', 'Q17984356'] [{'concept': 'Q1190554'}, 'P361', 'Q17507684']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1190554 . ?p property:P361 ?c . VALUES ( ?c ) { ( resource:Q8683 ) ( resource:Q211855 ) ( resource:Q4783165 ) } }
Battle of Ramadi Battle of Al Qaim Battle of Umm Qasr Battle of Basra battle of Najaf Battle of Najaf Second Battle of Tikrit Battle of Baiji (October–November 2014) Battle of Baiji Dhuluiya offensive Operation Ashura Turkish involvement in the Syrian Civil War
Battle of Basra, Battle of Umm Qasr and battle of Najaf are a portion of those wars
Battle of Basra Battle of Umm Qasr battle of Najaf
action filter_type
action find_reverse
entity prev_answer
relation part of
type event
[{'concept': 'event'}, 'part of', 'Iraq War'] [{'concept': 'event'}, 'part of', 'Iraqi Civil War'] [{'concept': 'event'}, 'part of', 'military intervention against ISIL']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:event . ?p property:part_of ?c . VALUES ( ?c ) { ( resource:Cold_War ) ( resource:Finnish_Civil_War ) ( resource:Arab_Cold_War ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2888122
P276
Q56061
USER
Which administrative territory is the location of Battle of Basra ?
(Q2888122,P276,c(Q56061))
action filter_type
action find
entity Q2888122
relation P276
type Q56061
['Q2888122', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q2888122 property:P276 ?n . ?n rdf:type ontology:Q56061 }
Battle of Basra
action filter_type
action find
entity Battle of Basra
relation location
type administrative territorial entity
['Battle of Basra', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Battle_of_Basra property:location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q48195
SYSTEM
Basra
Q48195
(Q2888122,P276,c(Q56061))
action filter_type
action find
entity Q2888122
relation P276
type Q56061
In [ANSWER] is the location of Battle of [ANSWER]
['Q2888122', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q2888122 property:P276 ?n . ?n rdf:type ontology:Q56061 }
Basra
In Basra is the location of Battle of Basra
Basra
action filter_type
action find
entity Battle of Basra
relation location
type administrative territorial entity
['Battle of Basra', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Battle_of_Basra property:location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19113074
Q56061
USER
And what about Eikendijk?
(Q19113074,P276,c(Q56061))
action filter_type
action find
entity Q19113074
relation P276
type Q56061
['Q19113074', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q19113074 property:P276 ?k . ?k rdf:type ontology:Q56061 }
Eikendijk
action filter_type
action find
entity Eikendijk
relation location
type administrative territorial entity
['Eikendijk', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Eikendijk property:location ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1329691
SYSTEM
Sprang-Capelle
Q1329691
(Q19113074,P276,c(Q56061))
action filter_type
action find
entity Q19113074
relation P276
type Q56061
[ANSWER]
['Q19113074', 'P276', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q19113074 property:P276 ?k . ?k rdf:type ontology:Q56061 }
Sprang-Capelle
Sprang-Capelle
action filter_type
action find
entity Eikendijk
relation location
type administrative territorial entity
['Eikendijk', 'location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Eikendijk property:location ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]