Simple Question (Direct)
Simple Question
Q593329
P734
Q82799
USER
Who has the surname Anton Reimer ?
(Q593329,P734,c(Q82799))
action filter_type
action find
entity Q593329
relation P734
type Q82799
['Q593329', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q593329 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Anton Reimer
action filter_type
action find
entity Anton Reimer
relation family name
type name
['Anton Reimer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Anton_Reimer property:family_name ?w . ?w rdf:type ontology:name }
[]
name
Q18599200
SYSTEM
Reimer
Q18599200
(Q593329,P734,c(Q82799))
action filter_type
action find
entity Q593329
relation P734
type Q82799
[ANSWER] has the surname Anton [ANSWER]
['Q593329', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q593329 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Reimer
Reimer has the surname Anton Reimer
Reimer
action filter_type
action find
entity Anton Reimer
relation family name
type name
['Anton Reimer', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Anton_Reimer property:family_name ?w . ?w rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q593329
P19
Q56061
USER
Which administrative territory was Anton Reimer born in ?
(Q593329,P19,c(Q56061))
action filter_type
action find
entity Q593329
relation P19
type Q56061
['Q593329', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q593329 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Anton Reimer
action filter_type
action find
entity Anton Reimer
relation place of birth
type administrative territorial entity
['Anton Reimer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Anton_Reimer property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1085
SYSTEM
Prague
Q1085
(Q593329,P19,c(Q56061))
action filter_type
action find
entity Q593329
relation P19
type Q56061
Anton Reimer was born in [ANSWER]
['Q593329', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q593329 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Prague
Anton Reimer was born in Prague
Prague
action filter_type
action find
entity Anton Reimer
relation place of birth
type administrative territorial entity
['Anton Reimer', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Anton_Reimer property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1085
P138
Q55488 Q34442
USER
How many railway stations and roads have Prague as their toponym ?
(c(Q55488),P138,Q1085) (c(Q34442),P138,Q1085)
action count
action union
action filter_type
action find_reverse
entity Q1085
relation P138
type Q55488
action filter_type
action find_reverse
entity Q1085
relation P138
type Q34442
[{'concept': 'Q55488'}, 'P138', 'Q1085'] [{'concept': 'Q34442'}, 'P138', 'Q1085']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { ?w property:P138 resource:Q1085 . ?w rdf:type ontology:Q55488 } UNION { ?w rdf:type ontology:Q34442 . ?w property:P138 resource:Q1085 } }
Prague
action count
action union
action filter_type
action find_reverse
entity Prague
relation named after
type railway station
action filter_type
action find_reverse
entity Prague
relation named after
type road
[{'concept': 'railway station'}, 'named after', 'Prague'] [{'concept': 'road'}, 'named after', 'Prague']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { ?w property:named_after resource:Prague . ?w rdf:type ontology:railway_station } UNION { ?w rdf:type ontology:road . ?w property:named_after resource:Prague } }
[]
railway station road
SYSTEM
1 railway stations and 2 roads
Q26252362 Q3450984 Q777410
(c(Q55488),P138,Q1085) (c(Q34442),P138,Q1085)
action count
action union
action filter_type
action find_reverse
entity Q1085
relation P138
type Q55488
action filter_type
action find_reverse
entity Q1085
relation P138
type Q34442
[ANSWER]
[{'concept': 'Q55488'}, 'P138', 'Q1085'] [{'concept': 'Q34442'}, 'P138', 'Q1085']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { ?w property:P138 resource:Q1085 . ?w rdf:type ontology:Q55488 } UNION { ?w rdf:type ontology:Q34442 . ?w property:P138 resource:Q1085 } }
Prager Straße rue de Prague Prazhskaya
1 railway stations and 2 roads
action count
action union
action filter_type
action find_reverse
entity Prague
relation named after
type railway station
action filter_type
action find_reverse
entity Prague
relation named after
type road
[{'concept': 'railway station'}, 'named after', 'Prague'] [{'concept': 'road'}, 'named after', 'Prague']
SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { { ?w property:named_after resource:Prague . ?w rdf:type ontology:railway_station } UNION { ?w rdf:type ontology:road . ?w property:named_after resource:Prague } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1615953 Q593329
P47 P27
Q1048835
USER
Which political territories do Anton Reimer belong to or share the border with Galapagar ?
OR((Q593329,P27,c(Q1048835)), (Q1615953,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q593329
relation P27
action find
entity Q1615953
relation P47
type Q1048835
{'OR': [['Q593329', 'P27', {'concept': 'Q1048835'}], ['Q1615953', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1615953 property:P47 ?e } UNION { resource:Q593329 property:P27 ?e } } . ?e rdf:type ontology:Q1048835 }
Galapagar Anton Reimer
action filter_type
action union
action find
entity Anton Reimer
relation country of citizenship
action find
entity Galapagar
relation shares border with
type political territorial entity
{'OR': [['Anton Reimer', 'country of citizenship', {'concept': 'political territorial entity'}], ['Galapagar', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Galapagar property:shares_border_with ?e } UNION { resource:Anton_Reimer property:country_of_citizenship ?e } } . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q592747 Q1646220 Q664769 Q1646201 Q517450 Q1751916 Q183 Q542958 Q371748 Q735759
SYSTEM
Some of them are Las Rozas de Madrid, Colmenarejo, Hoyo de Manzanares, Moralzarzal, Guadarrama, Villanueva del Pardillo, Germany, Torrelodones, San Lorenzo de El Escorial, Collado Villalba
Q371748 Q542958 Q664769 Q592747 Q183 Q1751916 Q1646201 Q735759 Q985269 Q517450 Q1646220
OR((Q593329,P27,c(Q1048835)), (Q1615953,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q593329
relation P27
action find
entity Q1615953
relation P47
type Q1048835
Anton Reimer belong to [ANSWERS]
{'OR': [['Q593329', 'P27', {'concept': 'Q1048835'}], ['Q1615953', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q1615953 property:P47 ?e } UNION { resource:Q593329 property:P27 ?e } } . ?e rdf:type ontology:Q1048835 }
San Lorenzo de El Escorial Torrelodones Hoyo de Manzanares Las Rozas de Madrid Germany Villanueva del Pardillo Moralzarzal Collado Villalba El Escorial Guadarrama Colmenarejo
Anton Reimer belong to Las Rozas de Madrid, Colmenarejo, Hoyo de Manzanares, Moralzarzal, Guadarrama, Villanueva del Pardillo, Germany, Torrelodones, San Lorenzo de El Escorial and Collado Villalba
Las Rozas de Madrid Colmenarejo Hoyo de Manzanares Moralzarzal Guadarrama Villanueva del Pardillo Germany Torrelodones San Lorenzo de El Escorial Collado Villalba
action filter_type
action union
action find
entity Anton Reimer
relation country of citizenship
action find
entity Galapagar
relation shares border with
type political territorial entity
{'OR': [['Anton Reimer', 'country of citizenship', {'concept': 'political territorial entity'}], ['Galapagar', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Galapagar property:shares_border_with ?e } UNION { resource:Anton_Reimer property:country_of_citizenship ?e } } . ?e rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1615953
P47
Q1048835
USER
How many political territories share border with Galapagar ?
(c(Q1048835),P47,Q1615953)
action count
action filter_type
action find_reverse
entity Q1615953
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q1615953']
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:P47 resource:Q1615953 . ?x rdf:type ontology:Q1048835 }
Galapagar
action count
action filter_type
action find_reverse
entity Galapagar
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Galapagar']
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:shares_border_with resource:Galapagar . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
7
Q664769 Q1751916 Q542958 Q1646201 Q1646220 Q985269 Q592747
(c(Q1048835),P47,Q1615953)
action count
action filter_type
action find_reverse
entity Q1615953
relation P47
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q1615953']
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:P47 resource:Q1615953 . ?x rdf:type ontology:Q1048835 }
Hoyo de Manzanares Villanueva del Pardillo Torrelodones Moralzarzal Colmenarejo El Escorial Las Rozas de Madrid
7
action count
action filter_type
action find_reverse
entity Galapagar
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Galapagar']
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:shares_border_with resource:Galapagar . ?x rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q517450
P21 P20
Q502895
USER
Which people expired at Guadarrama and have the gender as male ?
AND((c(Q502895),P20,Q517450), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q517450
relation P20
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P20', 'Q517450'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P20 resource:Q517450 . ?u property:P21 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
male Guadarrama
action filter_type
action intersection
action find_reverse
entity Guadarrama
relation place of death
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of death', 'Guadarrama'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:place_of_death resource:Guadarrama . ?u property:gender resource:male . ?u rdf:type ontology:common_name }
[]
common name
Q6173375 Q529837 Q2981248
SYSTEM
Ángel Ortiz de Villajos, Jaime Chicharro Sánchez-Guió, Cocherito de Bilbao
Q6173375 Q529837 Q2981248
AND((c(Q502895),P20,Q517450), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q517450
relation P20
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] expired at Guadarrama and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P20', 'Q517450'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?u WHERE { ?u property:P20 resource:Q517450 . ?u property:P21 resource:Q6581097 . ?u rdf:type ontology:Q502895 }
Ángel Ortiz de Villajos Jaime Chicharro Sánchez-Guió Cocherito de Bilbao
Ángel Ortiz de Villajos, Jaime Chicharro Sánchez-Guió and Cocherito de Bilbao expired at Guadarrama and have the gender as male
Ángel Ortiz de Villajos Jaime Chicharro Sánchez-Guió Cocherito de Bilbao
action filter_type
action intersection
action find_reverse
entity Guadarrama
relation place of death
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of death', 'Guadarrama'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?u WHERE { ?u property:place_of_death resource:Guadarrama . ?u property:gender resource:male . ?u rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q838948 Q17335294
USER
How many names are depicted in around 6 works of art and coats of arms ?
(c(Q838948)|c(Q17335294),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
value 6
[[{'concept': 'Q838948'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q17335294 ) } } GROUP BY ?b } . FILTER ( ?n = 6 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
value 6
[[{'concept': 'work of art'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?b } . FILTER ( ?n = 6 ) }
[]
name work of art flag or coat of arms
SYSTEM
54
Q13219075 Q134609 Q5 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q144 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q838948)|c(Q17335294),P180,c(Q82799))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
value 6
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q17335294'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q17335294 ) } } GROUP BY ?b } . FILTER ( ?n = 6 ) }
octopus Cynara scolymus human toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly dog trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
54
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type work of art
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
value 6
[[{'concept': 'work of art'}, {'concept': 'flag or coat of arms'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ?m . VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:flag_or_coat_of_arms ) } } GROUP BY ?b } . FILTER ( ?n = 6 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q529837
P102
Q7278
USER
Which political party is Jaime Chicharro Sánchez-Guió a member of ?
(Q529837,P102,c(Q7278))
action filter_type
action find
entity Q529837
relation P102
type Q7278
['Q529837', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?d WHERE { resource:Q529837 property:P102 ?d . ?d rdf:type ontology:Q7278 }
Jaime Chicharro Sánchez-Guió
action filter_type
action find
entity Jaime Chicharro Sánchez-Guió
relation member of political party
type political party
['Jaime Chicharro Sánchez-Guió', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?d WHERE { resource:Jaime_Chicharro_Sánchez-Guió property:member_of_political_party ?d . ?d rdf:type ontology:political_party }
[]
political party
Q3047700
SYSTEM
Liberal-Conservative Party
Q3047700
(Q529837,P102,c(Q7278))
action filter_type
action find
entity Q529837
relation P102
type Q7278
The [ANSWER] is Jaime Chicharro Sánchez-Guió a member of
['Q529837', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?d WHERE { resource:Q529837 property:P102 ?d . ?d rdf:type ontology:Q7278 }
Liberal-Conservative Party
The Liberal-Conservative Party is Jaime Chicharro Sánchez-Guió a member of
Liberal-Conservative Party
action filter_type
action find
entity Jaime Chicharro Sánchez-Guió
relation member of political party
type political party
['Jaime Chicharro Sánchez-Guió', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?d WHERE { resource:Jaime_Chicharro_Sánchez-Guió property:member_of_political_party ?d . ?d rdf:type ontology:political_party }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q102690
Q7278
USER
And how about Richard Toborg?
(Q102690,P102,c(Q7278))
action filter_type
action find
entity Q102690
relation P102
type Q7278
['Q102690', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?s WHERE { resource:Q102690 property:P102 ?s . ?s rdf:type ontology:Q7278 }
Richard Toborg
action filter_type
action find
entity Richard Toborg
relation member of political party
type political party
['Richard Toborg', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?s WHERE { resource:Richard_Toborg property:member_of_political_party ?s . ?s rdf:type ontology:political_party }
[]
political party
Q49762
SYSTEM
Christian Democratic Union
Q49762
(Q102690,P102,c(Q7278))
action filter_type
action find
entity Q102690
relation P102
type Q7278
[ANSWER]
['Q102690', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?s WHERE { resource:Q102690 property:P102 ?s . ?s rdf:type ontology:Q7278 }
Christian Democratic Union
Christian Democratic Union
action filter_type
action find
entity Richard Toborg
relation member of political party
type political party
['Richard Toborg', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?s WHERE { resource:Richard_Toborg property:member_of_political_party ?s . ?s rdf:type ontology:political_party }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q49762 Q1599115 Q99265
P488
Q502895
USER
Does Henry VI, Count of Gorizia and Reinhart Heinrich serve as a chairman for Q49762 ?
(Q49762,P488,Q1599115) (Q49762,P488,Q99265)
action is_in
entity Q49762
action intersection
action find_reverse
entity Q1599115
relation P488
action find_reverse
entity Q99265
relation P488
['Q49762', 'P488', 'Q1599115'] ['Q49762', 'P488', 'Q99265']
ASK WHERE { resource:Q49762 property:P488 resource:Q1599115 . resource:Q49762 property:P488 resource:Q99265 }
Christian Democratic Union Henry VI, Count of Gorizia Reinhart Heinrich
action is_in
entity Christian Democratic Union
action intersection
action find_reverse
entity Henry VI, Count of Gorizia
relation chairperson
action find_reverse
entity Reinhart Heinrich
relation chairperson
['Christian Democratic Union', 'chairperson', 'Henry VI, Count of Gorizia'] ['Christian Democratic Union', 'chairperson', 'Reinhart Heinrich']
ASK WHERE { resource:Christian_Democratic_Union property:chairperson resource:Henry_VI,_Count_of_Gorizia . resource:Christian_Democratic_Union property:chairperson resource:Reinhart_Heinrich }
[]
common name
SYSTEM
NO
(Q49762,P488,Q1599115) (Q49762,P488,Q99265)
action is_in
entity Q49762
action intersection
action find_reverse
entity Q1599115
relation P488
action find_reverse
entity Q99265
relation P488
[ANSWER]
['Q49762', 'P488', 'Q1599115'] ['Q49762', 'P488', 'Q99265']
ASK WHERE { resource:Q49762 property:P488 resource:Q1599115 . resource:Q49762 property:P488 resource:Q99265 }
No
action is_in
entity Christian Democratic Union
action intersection
action find_reverse
entity Henry VI, Count of Gorizia
relation chairperson
action find_reverse
entity Reinhart Heinrich
relation chairperson
['Christian Democratic Union', 'chairperson', 'Henry VI, Count of Gorizia'] ['Christian Democratic Union', 'chairperson', 'Reinhart Heinrich']
ASK WHERE { resource:Christian_Democratic_Union property:chairperson resource:Henry_VI,_Count_of_Gorizia . resource:Christian_Democratic_Union property:chairperson resource:Reinhart_Heinrich }
[]