Simple Question (Direct)
Simple Question
Q4734347
P106
Q12737077
USER
Which occupation has Alon Turgeman as his/her 's career ?
(Q4734347,P106,c(Q12737077))
action filter_type
action find
entity Q4734347
relation P106
type Q12737077
['Q4734347', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q4734347 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Alon Turgeman
action filter_type
action find
entity Alon Turgeman
relation occupation
type occupation
['Alon Turgeman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Alon_Turgeman property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q4734347,P106,c(Q12737077))
action filter_type
action find
entity Q4734347
relation P106
type Q12737077
As [ANSWER] has Alon Turgeman as his/her 's career
['Q4734347', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q4734347 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
association football player
As association football player has Alon Turgeman as his/her 's career
association football player
action filter_type
action find
entity Alon Turgeman
relation occupation
type occupation
['Alon Turgeman', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Alon_Turgeman property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4734347
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q937857,P19,c(Q56061))
action filter_type
action find
entity Q4734347
relation P19
type Q56061
['Q937857', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q4734347 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Alon Turgeman
action filter_type
action find
entity Alon Turgeman
relation place of birth
type administrative territorial entity
['association football player', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Alon_Turgeman property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q192225
SYSTEM
Netanya
Q192225
(Q937857,P19,c(Q56061))
action filter_type
action find
entity Q4734347
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q937857', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q4734347 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Netanya
Netanya is the place of birth of that person
Netanya
action filter_type
action find
entity Alon Turgeman
relation place of birth
type administrative territorial entity
['association football player', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Alon_Turgeman property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P6
Q502895 Q56061
USER
Which administrative territories have their government headed by more number of people than that administrative territory ?
(c(Q56061),P6,c(Q502895))
action greater
action find_tuple_counts
relation P6
type Q56061
type Q502895
action count
action filter_type
action find
entity Q192225
relation P6
type Q56061
[{'concept': 'Q56061'}, 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?e ) WHERE { ?m property:P6 ?i . ?i rdf:type ontology:Q502895 . ?m rdf:type ontology:Q56061 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Q192225 property:P6 ?x . ?x rdf:type ontology:Q56061 } } . FILTER ( ?e > ?z ) }
action greater
action find_tuple_counts
relation head of government
type administrative territorial entity
type common name
action count
action filter_type
action find
entity Netanya
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?e ) WHERE { ?m property:head_of_government ?i . ?i rdf:type ontology:common_name . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Netanya property:head_of_government ?x . ?x rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?e > ?z ) }
[]
common name administrative territorial entity
Q1085 Q72 Q2807
SYSTEM
Prague, Zürich, Madrid
Q1718 Q5870 Q15682 Q90 Q365 Q81046 Q490 Q6346 Q3415 Q171639 Q16556 Q1104 Q1741 Q472675 Q72 Q38022 Q270 Q3033 Q5092 Q1492 Q1770 Q2090 Q2807 Q342 Q15688 Q36600 Q1218 Q64032 Q64 Q60 Q61 Q62 Q68965 Q4031 Q1490 Q647 Q3012 Q586 Q1040 Q4190 Q1155 Q1085
(c(Q56061),P6,c(Q502895))
action greater
action find_tuple_counts
relation P6
type Q56061
type Q502895
action count
action filter_type
action find
entity Q192225
relation P6
type Q56061
[ANSWERS] have their government headed by more number of people than that administrative territory
[{'concept': 'Q56061'}, 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?e ) WHERE { ?m property:P6 ?i . ?i rdf:type ontology:Q502895 . ?m rdf:type ontology:Q56061 } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Q192225 property:P6 ?x . ?x rdf:type ontology:Q56061 } } . FILTER ( ?e > ?z ) }
Düsseldorf Freital Cádiz Paris Cologne Charleroi Milan Indianapolis Ancona Ashdod Phoenix Hemer Vienna Frederick Zürich St. Louis Warsaw Göttingen Baltimore Barcelona Tallinn Nuremberg Madrid Quimper Ávila The Hague Jerusalem Uster Berlin New York City Washington, D.C. San Francisco Solothurn Rüsselsheim Tokyo Rennes Ulm Bonn Karlsruhe Passau Busto Arsizio Prague
Prague, Zürich and Madrid have their government headed by more number of people than that administrative territory
Prague Zürich Madrid
action greater
action find_tuple_counts
relation head of government
type administrative territorial entity
type common name
action count
action filter_type
action find
entity Netanya
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?i ) AS ?e ) WHERE { ?m property:head_of_government ?i . ?i rdf:type ontology:common_name . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { resource:Netanya property:head_of_government ?x . ?x rdf:type ontology:administrative_territorial_entity } } . FILTER ( ?e > ?z ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1085
P127
Q43229
USER
Which organizations are owned by that administrative territory ?
(c(Q43229),P127,Q1085)
action filter_type
action find_reverse
entity Q1085
relation P127
type Q43229
[{'concept': 'Q43229'}, 'P127', 'Q1085']
SELECT DISTINCT ?c WHERE { ?c property:P127 resource:Q1085 . ?c rdf:type ontology:Q43229 }
Prague
action filter_type
action find_reverse
entity Prague
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Prague']
SELECT DISTINCT ?c WHERE { ?c property:owned_by resource:Prague . ?c rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q1085
SYSTEM
Did you mean Prague ?
Q1085 Q72 Q2807
(c(Q43229),P127,Q1085) (c(Q43229),P127,Q72) (c(Q43229),P127,Q2807)
[ANSWER]
[{'concept': 'Q43229'}, 'P127', 'Q1085'] [{'concept': 'Q43229'}, 'P127', 'Q72'] [{'concept': 'Q43229'}, 'P127', 'Q2807']
SELECT DISTINCT ?c WHERE { ?c property:P127 resource:Q1085 . ?c rdf:type ontology:Q43229 }
Prague Zürich Madrid
Did you mean Prague ?
Prague
[{'concept': 'organization'}, 'owned by', 'Prague'] [{'concept': 'organization'}, 'owned by', 'Zürich'] [{'concept': 'organization'}, 'owned by', 'Madrid']
SELECT DISTINCT ?c WHERE { ?c property:owned_by resource:Prague . ?c rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q43229),P127,Q1085)
[{'concept': 'Q43229'}, 'P127', 'Q1085']
[{'concept': 'organization'}, 'owned by', 'Prague']
[]
Q21349378 Q27450080 Q7058609
SYSTEM
PPF banka, Pražská teplárenská Holding, Vinohrady Cemetery
Q21349378 Q27450080 Q7058609 Q11942935
(c(Q43229),P127,Q1085)
action filter_type
action find_reverse
entity Q1085
relation P127
type Q43229
[ANSWERS] are owned by that administrative territory
[{'concept': 'Q43229'}, 'P127', 'Q1085']
SELECT DISTINCT ?c WHERE { ?c property:P127 resource:Q1085 . ?c rdf:type ontology:Q43229 }
PPF banka Pražská teplárenská Holding Vinohrady Cemetery Vršovice Cemetery
PPF banka, Pražská teplárenská Holding and Vinohrady Cemetery are owned by that administrative territory
PPF banka Pražská teplárenská Holding Vinohrady Cemetery
action filter_type
action find_reverse
entity Prague
relation owned by
type organization
[{'concept': 'organization'}, 'owned by', 'Prague']
SELECT DISTINCT ?c WHERE { ?c property:owned_by resource:Prague . ?c rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q192225
P190
Q20667921
USER
Which french administrative division is twin town of Netanya ?
(Q192225,P190,c(Q20667921))
action filter_type
action find
entity Q192225
relation P190
type Q20667921
['Q192225', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q192225 property:P190 ?d . ?d rdf:type ontology:Q20667921 }
Netanya
action filter_type
action find
entity Netanya
relation sister city
type type of french administrative division
['Netanya', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Netanya property:sister_city ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q107501
SYSTEM
Sarcelles
Q107501
(Q192225,P190,c(Q20667921))
action filter_type
action find
entity Q192225
relation P190
type Q20667921
[ANSWER] is twin town of Netanya
['Q192225', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?d WHERE { resource:Q192225 property:P190 ?d . ?d rdf:type ontology:Q20667921 }
Sarcelles
Sarcelles is twin town of Netanya
Sarcelles
action filter_type
action find
entity Netanya
relation sister city
type type of french administrative division
['Netanya', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?d WHERE { resource:Netanya property:sister_city ?d . ?d rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q107501
P740
Q43229
USER
Which organization was formed at that french administrative division ?
(c(Q43229),P740,Q107501)
action filter_type
action find_reverse
entity Q107501
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q107501']
SELECT DISTINCT ?f WHERE { ?f property:P740 resource:Q107501 . ?f rdf:type ontology:Q43229 }
Sarcelles
action filter_type
action find_reverse
entity Sarcelles
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Sarcelles']
SELECT DISTINCT ?f WHERE { ?f property:location_of_formation resource:Sarcelles . ?f rdf:type ontology:organization }
[]
organization
Q764155
SYSTEM
Tefal
Q764155
(c(Q43229),P740,Q107501)
action filter_type
action find_reverse
entity Q107501
relation P740
type Q43229
[ANSWER] was formed at that french administrative division
[{'concept': 'Q43229'}, 'P740', 'Q107501']
SELECT DISTINCT ?f WHERE { ?f property:P740 resource:Q107501 . ?f rdf:type ontology:Q43229 }
Tefal
Tefal was formed at that french administrative division
Tefal
action filter_type
action find_reverse
entity Sarcelles
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Sarcelles']
SELECT DISTINCT ?f WHERE { ?f property:location_of_formation resource:Sarcelles . ?f rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q107501 Q36312
P159
Q4830453
USER
How many business enterprises have the principal seat at Sarcelles or Calgary ?
(c(Q4830453),P159,Q107501) (c(Q4830453),P159,Q36312)
action count
action union
action filter_type
action find_reverse
entity Q107501
relation P159
type Q4830453
action filter_type
action find_reverse
entity Q36312
relation P159
type Q4830453
[{'concept': 'Q4830453'}, 'P159', 'Q107501'] [{'concept': 'Q4830453'}, 'P159', 'Q36312']
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:P159 ?f . VALUES ( ?f ) { ( resource:Q107501 ) ( resource:Q36312 ) } }
Sarcelles Calgary
action count
action union
action filter_type
action find_reverse
entity Sarcelles
relation headquarters location
type business enterprise
action filter_type
action find_reverse
entity Calgary
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Sarcelles'] [{'concept': 'business enterprise'}, 'headquarters location', 'Calgary']
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:headquarters_location ?f . VALUES ( ?f ) { ( resource:Sarcelles ) ( resource:Calgary ) } }
[]
business enterprise
SYSTEM
5
Q21866820 Q8000786 Q4906227 Q5141435 Q20829834
(c(Q4830453),P159,Q107501) (c(Q4830453),P159,Q36312)
action count
action union
action filter_type
action find_reverse
entity Q107501
relation P159
type Q4830453
action filter_type
action find_reverse
entity Q36312
relation P159
type Q4830453
[ANSWER]
[{'concept': 'Q4830453'}, 'P159', 'Q107501'] [{'concept': 'Q4830453'}, 'P159', 'Q36312']
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:P159 ?f . VALUES ( ?f ) { ( resource:Q107501 ) ( resource:Q36312 ) } }
Zi Corporation Wild Rose Brewery Big Rock Brewery Cohos Evamy Wholesale Sports Outdoor Outfitters
5
action count
action union
action filter_type
action find_reverse
entity Sarcelles
relation headquarters location
type business enterprise
action filter_type
action find_reverse
entity Calgary
relation headquarters location
type business enterprise
[{'concept': 'business enterprise'}, 'headquarters location', 'Sarcelles'] [{'concept': 'business enterprise'}, 'headquarters location', 'Calgary']
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { ?c property:headquarters_location ?f . VALUES ( ?f ) { ( resource:Sarcelles ) ( resource:Calgary ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q7058609
P119 P21
Q502895
USER
Which people have Vinohrady Cemetery as resting place and are a male ?
AND((c(Q502895),P119,Q7058609), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7058609
relation P119
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P119', 'Q7058609'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P21 resource:Q6581097 . ?r property:P119 resource:Q7058609 . ?r rdf:type ontology:Q502895 }
male Vinohrady Cemetery
action filter_type
action intersection
action find_reverse
entity Vinohrady Cemetery
relation place of burial
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of burial', 'Vinohrady Cemetery'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:gender resource:male . ?r property:place_of_burial resource:Vinohrady_Cemetery . ?r rdf:type ontology:common_name }
[]
common name
Q650542 Q360411 Q12026037 Q5621154 Q2075755 Q1388833 Q6847683 Q1118918 Q156502 Q5371408
SYSTEM
Some of them are Karel Václav Rais, Viktor Kalabis, Josef Gruss, Gustav Hilmar, Václav Vačkář, Jan Gebauer, Václav Vlček, Karel Hugo Hilar, Emil Hácha, Emil Pollert
Q650542 Q548359 Q1445612 Q1388833 Q329054 Q2211014 Q356151 Q6847683 Q1118918 Q12026037 Q2075755 Q12030078 Q1357899 Q4285106 Q5621154 Q1391830 Q3508550 Q78791 Q1288315 Q5371408 Q360411 Q1000005 Q36233 Q156502
AND((c(Q502895),P119,Q7058609), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7058609
relation P119
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have Vinohrady Cemetery as resting place and are a male
{'AND': [[{'concept': 'Q502895'}, 'P119', 'Q7058609'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P21 resource:Q6581097 . ?r property:P119 resource:Q7058609 . ?r rdf:type ontology:Q502895 }
Karel Václav Rais Jiří Šlitr František Kožík Jan Gebauer Dalibor Cyril Vačkář Bohdan Kaminský Julius Fučík Václav Vlček Karel Hugo Hilar Josef Gruss Václav Vačkář Konstantin Bušek Jan Karafiát Josef Mathauser Gustav Hilmar Jaroslav Foglar Jiří Grossmann Egon Erwin Kisch Eduard Fiker Emil Pollert Viktor Kalabis Karel Matěj Čapek-Chod Václav Havel Emil Hácha
Karel Václav Rais, Viktor Kalabis, Josef Gruss, Gustav Hilmar, Václav Vačkář, Jan Gebauer, Václav Vlček, Karel Hugo Hilar, Emil Hácha and Emil Pollert have Vinohrady Cemetery as resting place and are a male
Karel Václav Rais Viktor Kalabis Josef Gruss Gustav Hilmar Václav Vačkář Jan Gebauer Václav Vlček Karel Hugo Hilar Emil Hácha Emil Pollert
action filter_type
action intersection
action find_reverse
entity Vinohrady Cemetery
relation place of burial
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of burial', 'Vinohrady Cemetery'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:gender resource:male . ?r property:place_of_burial resource:Vinohrady_Cemetery . ?r rdf:type ontology:common_name }
[]