Simple Question (Direct)
Simple Question
Q47576
P19
Q515
USER
Which city was Arsène Wenger born in ?
(Q47576,P19,c(Q515))
action filter_type
action find
entity Q47576
relation P19
type Q515
['Q47576', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { resource:Q47576 property:P19 ?q . ?q rdf:type ontology:Q515 }
Arsène Wenger
action filter_type
action find
entity Arsène Wenger
relation place of birth
type city
['Arsène Wenger', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { resource:Arsène_Wenger property:place_of_birth ?q . ?q rdf:type ontology:city }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q47576,P19,c(Q515))
action filter_type
action find
entity Q47576
relation P19
type Q515
Arsène Wenger was born in [ANSWER]
['Q47576', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?q WHERE { resource:Q47576 property:P19 ?q . ?q rdf:type ontology:Q515 }
Strasbourg
Arsène Wenger was born in Strasbourg
Strasbourg
action filter_type
action find
entity Arsène Wenger
relation place of birth
type city
['Arsène Wenger', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?q WHERE { resource:Arsène_Wenger property:place_of_birth ?q . ?q rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6602
P166
Q618779
USER
What was awarded to that city ?
(Q6602,P166,c(Q618779))
action filter_type
action find
entity Q6602
relation P166
type Q618779
['Q6602', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?m WHERE { resource:Q6602 property:P166 ?m . ?m rdf:type ontology:Q618779 }
Strasbourg
action filter_type
action find
entity Strasbourg
relation award received
type award
['Strasbourg', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?m WHERE { resource:Strasbourg property:award_received ?m . ?m rdf:type ontology:award }
[]
award
Q20828891
SYSTEM
European City of the Reformation
Q20828891
(Q6602,P166,c(Q618779))
action filter_type
action find
entity Q6602
relation P166
type Q618779
[ANSWER] was awarded to that city
['Q6602', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?m WHERE { resource:Q6602 property:P166 ?m . ?m rdf:type ontology:Q618779 }
European City of the Reformation
European City of the Reformation was awarded to that city
European City of the Reformation
action filter_type
action find
entity Strasbourg
relation award received
type award
['Strasbourg', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?m WHERE { resource:Strasbourg property:award_received ?m . ?m rdf:type ontology:award }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P1027
Q2668072 Q48204 Q618779
USER
Which awards are conferred by more number of collections or voluntary associations than that award ?
(c(Q618779),P1027,c(Q2668072)|c(Q48204))
action greater
action union
action find_tuple_counts
relation P1027
type Q618779
type Q2668072
action find_tuple_counts
relation P1027
type Q618779
type Q48204
action count
action filter_multi_types
action find
entity Q20828891
relation P1027
type Q2668072
type Q48204
[{'concept': 'Q618779'}, 'P1027', [{'concept': 'Q2668072'}, {'concept': 'Q48204'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?i WHERE { { ?i property:P1027 ?q . ?i rdf:type ontology:Q618779 . ?q rdf:type ontology:Q2668072 } UNION { ?i property:P1027 ?q . ?i rdf:type ontology:Q618779 . ?q rdf:type ontology:Q48204 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { resource:Q20828891 property:P1027 ?s . { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:Q2668072 ) ( ontology:Q48204 ) } } } } . FILTER ( ?l > ?j ) }
action greater
action union
action find_tuple_counts
relation conferred by
type award
type collection
action find_tuple_counts
relation conferred by
type award
type voluntary association
action count
action filter_multi_types
action find
entity European City of the Reformation
relation conferred by
type collection
type voluntary association
[{'concept': 'award'}, 'conferred by', [{'concept': 'collection'}, {'concept': 'voluntary association'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?i WHERE { { ?i property:conferred_by ?q . ?i rdf:type ontology:award . ?q rdf:type ontology:collection } UNION { ?i property:conferred_by ?q . ?i rdf:type ontology:award . ?q rdf:type ontology:voluntary_association } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { resource:European_City_of_the_Reformation property:conferred_by ?s . { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:collection ) ( ontology:voluntary_association ) } } } } . FILTER ( ?l > ?j ) }
[]
collection voluntary association award
SYSTEM
12
Q622813 Q1253764 Q3405510 Q5375541 Q22074510 Q17010358 Q1472266 Q23015673 Q1320666 Q3404975 Q1026417 Q1043985
(c(Q618779),P1027,c(Q2668072)|c(Q48204))
action greater
action union
action find_tuple_counts
relation P1027
type Q618779
type Q2668072
action find_tuple_counts
relation P1027
type Q618779
type Q48204
action count
action filter_multi_types
action find
entity Q20828891
relation P1027
type Q2668072
type Q48204
[ANSWER]
[{'concept': 'Q618779'}, 'P1027', [{'concept': 'Q2668072'}, {'concept': 'Q48204'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?i WHERE { { ?i property:P1027 ?q . ?i rdf:type ontology:Q618779 . ?q rdf:type ontology:Q2668072 } UNION { ?i property:P1027 ?q . ?i rdf:type ontology:Q618779 . ?q rdf:type ontology:Q48204 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { resource:Q20828891 property:P1027 ?s . { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:Q2668072 ) ( ontology:Q48204 ) } } } } . FILTER ( ?l > ?j ) }
Newbery Medal Dr.-Heinz-Cüppers-Preis Prix de l'essai Encore Award Leo Strauss Prize Producers Guild of America Award for Best Episodic Drama Kate Greenaway Medal Reichel Award Frisch Medal Lumière Award, Lyon Festival of cinema Caldecott Medal Carnegie Medal
12
action greater
action union
action find_tuple_counts
relation conferred by
type award
type collection
action find_tuple_counts
relation conferred by
type award
type voluntary association
action count
action filter_multi_types
action find
entity European City of the Reformation
relation conferred by
type collection
type voluntary association
[{'concept': 'award'}, 'conferred by', [{'concept': 'collection'}, {'concept': 'voluntary association'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?i WHERE { { ?i property:conferred_by ?q . ?i rdf:type ontology:award . ?q rdf:type ontology:collection } UNION { ?i property:conferred_by ?q . ?i rdf:type ontology:award . ?q rdf:type ontology:voluntary_association } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { resource:European_City_of_the_Reformation property:conferred_by ?s . { ?s rdf:type ?v . VALUES ( ?v ) { ( ontology:collection ) ( ontology:voluntary_association ) } } } } . FILTER ( ?l > ?j ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1613720 Q6602
P47
Q20667921
USER
Which french administrative divisions share the border with Strasbourg or Bonnes ?
OR((Q6602,P47,c(Q20667921)), (Q1613720,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q6602
relation P47
action find
entity Q1613720
relation P47
type Q20667921
{'OR': [['Q6602', 'P47', {'concept': 'Q20667921'}], ['Q1613720', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?o WHERE { { ?d property:P47 ?o . VALUES ( ?d ) { ( resource:Q6602 ) ( resource:Q1613720 ) } } . ?o rdf:type ontology:Q20667921 }
Bonnes Strasbourg
action filter_type
action union
action find
entity Strasbourg
relation shares border with
action find
entity Bonnes
relation shares border with
type type of french administrative division
{'OR': [['Strasbourg', 'shares border with', {'concept': 'type of french administrative division'}], ['Bonnes', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?o WHERE { { ?d property:shares_border_with ?o . VALUES ( ?d ) { ( resource:Strasbourg ) ( resource:Bonnes ) } } . ?o rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q21388 Q1011474 Q635709 Q1077033 Q21570 Q674900 Q22891 Q1623394 Q21354 Q21511
SYSTEM
Some of them are Lingolsheim, Saint-Aulaye, Aubeterre-sur-Dronne, Saint-Privat-des-Prés, Bischheim, Saint-Romain, Eschau, Les Essards, Ostwald, Oberhausbergen
Q21347 Q22891 Q22639 Q1011474 Q1076752 Q1623394 Q21570 Q22660 Q21804 Q674900 Q1077033 Q21388 Q21354 Q635709 Q21511
OR((Q6602,P47,c(Q20667921)), (Q1613720,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q6602
relation P47
action find
entity Q1613720
relation P47
type Q20667921
[ANSWERS] share the border with Strasbourg or Bonnes
{'OR': [['Q6602', 'P47', {'concept': 'Q20667921'}], ['Q1613720', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?o WHERE { { ?d property:P47 ?o . VALUES ( ?d ) { ( resource:Q6602 ) ( resource:Q1613720 ) } } . ?o rdf:type ontology:Q20667921 }
Eckbolsheim Eschau Schiltigheim Saint-Aulaye Saint-Antoine-Cumond Les Essards Bischheim Illkirch-Graffenstaden La Wantzenau Saint-Romain Saint-Privat-des-Prés Lingolsheim Ostwald Aubeterre-sur-Dronne Oberhausbergen
Lingolsheim, Saint-Aulaye, Aubeterre-sur-Dronne, Saint-Privat-des-Prés, Bischheim, Saint-Romain, Eschau, Les Essards, Ostwald and Oberhausbergen share the border with Strasbourg or Bonnes
Lingolsheim Saint-Aulaye Aubeterre-sur-Dronne Saint-Privat-des-Prés Bischheim Saint-Romain Eschau Les Essards Ostwald Oberhausbergen
action filter_type
action union
action find
entity Strasbourg
relation shares border with
action find
entity Bonnes
relation shares border with
type type of french administrative division
{'OR': [['Strasbourg', 'shares border with', {'concept': 'type of french administrative division'}], ['Bonnes', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?o WHERE { { ?d property:shares_border_with ?o . VALUES ( ?d ) { ( resource:Strasbourg ) ( resource:Bonnes ) } } . ?o rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q21388 Q1011474 Q635709 Q1077033 Q21570 Q674900 Q22891 Q1623394 Q21354 Q21511
P47
Q20667921
USER
Which french administrative divisions do those ones share a border with ?
(c(Q20667921),P47,Q21388) (c(Q20667921),P47,Q1011474) (c(Q20667921),P47,Q635709) (c(Q20667921),P47,Q1077033) (c(Q20667921),P47,Q21570) (c(Q20667921),P47,Q674900) (c(Q20667921),P47,Q22891) (c(Q20667921),P47,Q1623394) (c(Q20667921),P47,Q21354) (c(Q20667921),P47,Q21511)
action filter_type
action find_reverse
entity prev_answer
relation P47
type Q20667921
[{'concept': 'Q20667921'}, 'P47', 'Q21388'] [{'concept': 'Q20667921'}, 'P47', 'Q1011474'] [{'concept': 'Q20667921'}, 'P47', 'Q635709'] [{'concept': 'Q20667921'}, 'P47', 'Q1077033'] [{'concept': 'Q20667921'}, 'P47', 'Q21570'] [{'concept': 'Q20667921'}, 'P47', 'Q674900'] [{'concept': 'Q20667921'}, 'P47', 'Q22891'] [{'concept': 'Q20667921'}, 'P47', 'Q1623394'] [{'concept': 'Q20667921'}, 'P47', 'Q21354'] [{'concept': 'Q20667921'}, 'P47', 'Q21511']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q20667921 . VALUES ( ?y ) { ( resource:Q21347 ) ( resource:Q22891 ) ( resource:Q22639 ) } . ?i property:P47 ?y }
Lingolsheim Saint-Aulaye Aubeterre-sur-Dronne Saint-Privat-des-Prés Bischheim Saint-Romain Eschau Les Essards Ostwald Oberhausbergen
action filter_type
action find_reverse
entity prev_answer
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Lingolsheim'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Aulaye'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Aubeterre-sur-Dronne'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Privat-des-Prés'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Bischheim'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Romain'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Eschau'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Les Essards'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Ostwald'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Oberhausbergen']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:type_of_french_administrative_division . VALUES ( ?y ) { ( resource:Eckbolsheim ) ( resource:Eschau ) ( resource:Schiltigheim ) } . ?i property:shares_border_with ?y }
[]
type of french administrative division
Q22643 Q674900 Q742436
SYSTEM
Geispolsheim, Saint-Romain, Pillac
Q21347 Q22643 Q22438 Q21477 Q21354 Q1623394 Q1613720 Q965525 Q1076752 Q1613720 Q674900 Q1076647 Q1613720 Q21346 Q21303 Q22639 Q22422 Q21804 Q635709 Q1640265 Q1623394 Q1635810 Q1344199 Q965525 Q1613720 Q742436 Q21372 Q21373 Q22660 Q22477 Q21421 Q21539 Q1626385 Q1640265 Q201892 Q1011474 Q1613720 Q674900 Q21388 Q22660 Q22643 Q21228 Q244203 Q21347 Q22639 Q21464 Q21525 Q22684
(c(Q20667921),P47,Q21388) (c(Q20667921),P47,Q1011474) (c(Q20667921),P47,Q635709) (c(Q20667921),P47,Q1077033) (c(Q20667921),P47,Q21570) (c(Q20667921),P47,Q674900) (c(Q20667921),P47,Q22891) (c(Q20667921),P47,Q1623394) (c(Q20667921),P47,Q21354) (c(Q20667921),P47,Q21511)
action filter_type
action find_reverse
entity prev_answer
relation P47
type Q20667921
[ANSWERS] those ones share a border with
[{'concept': 'Q20667921'}, 'P47', 'Q21388'] [{'concept': 'Q20667921'}, 'P47', 'Q1011474'] [{'concept': 'Q20667921'}, 'P47', 'Q635709'] [{'concept': 'Q20667921'}, 'P47', 'Q1077033'] [{'concept': 'Q20667921'}, 'P47', 'Q21570'] [{'concept': 'Q20667921'}, 'P47', 'Q674900'] [{'concept': 'Q20667921'}, 'P47', 'Q22891'] [{'concept': 'Q20667921'}, 'P47', 'Q1623394'] [{'concept': 'Q20667921'}, 'P47', 'Q21354'] [{'concept': 'Q20667921'}, 'P47', 'Q21511']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q20667921 . VALUES ( ?y ) { ( resource:Q21347 ) ( resource:Q22891 ) ( resource:Q22639 ) } . ?i property:P47 ?y }
Eckbolsheim Geispolsheim Entzheim Holtzheim Ostwald Les Essards Bonnes Laprade Saint-Antoine-Cumond Bonnes Saint-Romain Saint-Vincent-Jalmoutiers Bonnes Reichstett Niederhausbergen Schiltigheim Hoenheim La Wantzenau Aubeterre-sur-Dronne Rouffiac Les Essards Bellon Courlac Laprade Bonnes Pillac Ichtratzheim Nordhouse Illkirch-Graffenstaden Fegersheim Hipsheim Plobsheim Saint-Quentin-de-Chalais Rouffiac Chenaud Saint-Aulaye Bonnes Saint-Romain Lingolsheim Illkirch-Graffenstaden Geispolsheim Dingsheim Griesheim-sur-Souffel Eckbolsheim Schiltigheim Oberschaeffolsheim Wolfisheim Mittelhausbergen
Geispolsheim, Saint-Romain and Pillac those ones share a border with
Geispolsheim Saint-Romain Pillac
action filter_type
action find_reverse
entity prev_answer
relation shares border with
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'shares border with', 'Lingolsheim'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Aulaye'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Aubeterre-sur-Dronne'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Privat-des-Prés'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Bischheim'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Saint-Romain'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Eschau'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Les Essards'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Ostwald'] [{'concept': 'type of french administrative division'}, 'shares border with', 'Oberhausbergen']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:type_of_french_administrative_division . VALUES ( ?y ) { ( resource:Eckbolsheim ) ( resource:Eschau ) ( resource:Schiltigheim ) } . ?i property:shares_border_with ?y }
[]
Clarification
Simple Question|Single Entity|Indirect
Q22643
P1376
Q20667921
USER
Which french administrative division has that one as its capital ?
(Q22643,P1376,c(Q20667921))
action filter_type
action find
entity Q22643
relation P1376
type Q20667921
['Q22643', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q22643 property:P1376 ?d . ?d rdf:type ontology:Q20667921 }
Geispolsheim
action filter_type
action find
entity Geispolsheim
relation capital of
type type of french administrative division
['Geispolsheim', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Geispolsheim property:capital_of ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Clarification for simple ques.
Q742436
SYSTEM
Did you mean Pillac ?
Q22643 Q674900 Q742436
(Q22643,P1376,c(Q20667921)) (Q674900,P1376,c(Q20667921)) (Q742436,P1376,c(Q20667921))
[ANSWER]
['Q22643', 'P1376', {'concept': 'Q20667921'}] ['Q674900', 'P1376', {'concept': 'Q20667921'}] ['Q742436', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q22643 property:P1376 ?d . ?d rdf:type ontology:Q20667921 }
Geispolsheim Saint-Romain Pillac
Did you mean Pillac ?
Pillac
['Geispolsheim', 'capital of', {'concept': 'type of french administrative division'}] ['Saint-Romain', 'capital of', {'concept': 'type of french administrative division'}] ['Pillac', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Geispolsheim property:capital_of ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
USER
No, I meant Geispolsheim. Could you tell me the answer for that?
(Q22643,P1376,c(Q20667921))
Q22643
['Q22643', 'P1376', {'concept': 'Q20667921'}]
['Geispolsheim', 'capital of', {'concept': 'type of french administrative division'}]
[]
Q530938
SYSTEM
canton of Geispolsheim
Q530938
(Q22643,P1376,c(Q20667921))
action filter_type
action find
entity Q22643
relation P1376
type Q20667921
The [ANSWER] has that one as its capital
['Q22643', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q22643 property:P1376 ?d . ?d rdf:type ontology:Q20667921 }
canton of Geispolsheim
The canton of Geispolsheim has that one as its capital
canton of Geispolsheim
action filter_type
action find
entity Geispolsheim
relation capital of
type type of french administrative division
['Geispolsheim', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Geispolsheim property:capital_of ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q530938 Q142
P17
Q15617994
USER
Is that french administrative division situated in France ?
(Q530938,P17,Q142)
action is_in
entity Q142
action find
entity Q530938
relation P17
['Q530938', 'P17', 'Q142']
ASK WHERE { resource:Q530938 property:P17 resource:Q142 }
canton of Geispolsheim France
action is_in
entity France
action find
entity canton of Geispolsheim
relation country
['canton of Geispolsheim', 'country', 'France']
ASK WHERE { resource:canton_of_Geispolsheim property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q530938,P17,Q142)
action is_in
entity Q142
action find
entity Q530938
relation P17
[ANSWER]
['Q530938', 'P17', 'Q142']
ASK WHERE { resource:Q530938 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity canton of Geispolsheim
relation country
['canton of Geispolsheim', 'country', 'France']
ASK WHERE { resource:canton_of_Geispolsheim property:country resource:France }
[]