Simple Question (Direct)
Simple Question
Q1512602
P39
Q12737077
USER
What was the position held by Gerhard Stolz ?
(Q1512602,P39,c(Q12737077))
action filter_type
action find
entity Q1512602
relation P39
type Q12737077
['Q1512602', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q1512602 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Gerhard Stolz
action filter_type
action find
entity Gerhard Stolz
relation position held
type occupation
['Gerhard Stolz', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Gerhard_Stolz property:position_held ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q17481175
SYSTEM
Member of the Landtag of Baden-Württemberg
Q17481175
(Q1512602,P39,c(Q12737077))
action filter_type
action find
entity Q1512602
relation P39
type Q12737077
The position held by Gerhard Stolz was a [ANSWER]
['Q1512602', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q1512602 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Member of the Landtag of Baden-Württemberg
The position held by Gerhard Stolz was a Member of the Landtag of Baden-Württemberg
Member of the Landtag of Baden-Württemberg
action filter_type
action find
entity Gerhard Stolz
relation position held
type occupation
['Gerhard Stolz', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Gerhard_Stolz property:position_held ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1512602
P937
Q56061
USER
What is the location where Gerhard Stolz worked ?
(Q1512602,P937,c(Q56061))
action filter_type
action find
entity Q1512602
relation P937
type Q56061
['Q1512602', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1512602 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Gerhard Stolz
action filter_type
action find
entity Gerhard Stolz
relation work location
type administrative territorial entity
['Gerhard Stolz', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Gerhard_Stolz property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1022
SYSTEM
Stuttgart
Q1022
(Q1512602,P937,c(Q56061))
action filter_type
action find
entity Q1512602
relation P937
type Q56061
The location Gerhard Stolz worked is in [ANSWER]
['Q1512602', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1512602 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Stuttgart
The location Gerhard Stolz worked is in Stuttgart
Stuttgart
action filter_type
action find
entity Gerhard Stolz
relation work location
type administrative territorial entity
['Gerhard Stolz', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Gerhard_Stolz property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q103836
Q56061
USER
And how about Josef Felder?
(Q103836,P937,c(Q56061))
action filter_type
action find
entity Q103836
relation P937
type Q56061
['Q103836', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q103836 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Josef Felder
action filter_type
action find
entity Josef Felder
relation work location
type administrative territorial entity
['Josef Felder', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Josef_Felder property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q586
SYSTEM
Berlin, Bonn
Q64 Q586
(Q103836,P937,c(Q56061))
action filter_type
action find
entity Q103836
relation P937
type Q56061
[ANSWERS]
['Q103836', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q103836 property:P937 ?e . ?e rdf:type ontology:Q56061 }
Berlin Bonn
Berlin Bonn
action filter_type
action find
entity Josef Felder
relation work location
type administrative territorial entity
['Josef Felder', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Josef_Felder property:work_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q777688
P937
Q502895
USER
Do Abba Ahimeir have those administrative territories as their work location ?
(Q777688,P937,Q64) (Q777688,P937,Q586)
action is_in
entity prev_answer
action find
entity Q777688
relation P937
['Q777688', 'P937', 'Q64'] ['Q777688', 'P937', 'Q586']
ASK WHERE { VALUES ( ?z ) { ( resource:Q64 ) ( resource:Q586 ) } . resource:Q777688 property:P937 ?z }
Abba Ahimeir
action is_in
entity prev_answer
action find
entity Abba Ahimeir
relation work location
['Abba Ahimeir', 'work location', 'Berlin'] ['Abba Ahimeir', 'work location', 'Bonn']
ASK WHERE { VALUES ( ?z ) { ( resource:Berlin ) ( resource:Bonn ) } . resource:Abba_Ahimeir property:work_location ?z }
[]
common name
SYSTEM
NO
(Q777688,P937,Q64) (Q777688,P937,Q586)
action is_in
entity prev_answer
action find
entity Q777688
relation P937
[ANSWER]
['Q777688', 'P937', 'Q64'] ['Q777688', 'P937', 'Q586']
ASK WHERE { VALUES ( ?z ) { ( resource:Q64 ) ( resource:Q586 ) } . resource:Q777688 property:P937 ?z }
No
action is_in
entity prev_answer
action find
entity Abba Ahimeir
relation work location
['Abba Ahimeir', 'work location', 'Berlin'] ['Abba Ahimeir', 'work location', 'Bonn']
ASK WHERE { VALUES ( ?z ) { ( resource:Berlin ) ( resource:Bonn ) } . resource:Abba_Ahimeir property:work_location ?z }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1512602 Q49766 Q49768
P102
Q7278
USER
Is Gerhard Stolz a member of Alliance '90/The Greens and Social Democratic Party of Germany ?
(Q1512602,P102,Q49766) (Q1512602,P102,Q49768)
action is_in
entity Q1512602
action intersection
action find_reverse
entity Q49766
relation P102
action find_reverse
entity Q49768
relation P102
['Q1512602', 'P102', 'Q49766'] ['Q1512602', 'P102', 'Q49768']
ASK WHERE { resource:Q1512602 property:P102 resource:Q49768 . resource:Q1512602 property:P102 resource:Q49766 }
Gerhard Stolz Alliance '90/The Greens Social Democratic Party of Germany
action is_in
entity Gerhard Stolz
action intersection
action find_reverse
entity Alliance '90/The Greens
relation member of political party
action find_reverse
entity Social Democratic Party of Germany
relation member of political party
['Gerhard Stolz', 'member of political party', "Alliance '90/The Greens"] ['Gerhard Stolz', 'member of political party', 'Social Democratic Party of Germany']
ASK WHERE { resource:Gerhard_Stolz property:member_of_political_party resource:Social_Democratic_Party_of_Germany . resource:Gerhard_Stolz property:member_of_political_party resource:Alliance_'90/The_Greens }
[]
political party
SYSTEM
YES
(Q1512602,P102,Q49766) (Q1512602,P102,Q49768)
action is_in
entity Q1512602
action intersection
action find_reverse
entity Q49766
relation P102
action find_reverse
entity Q49768
relation P102
[ANSWER]
['Q1512602', 'P102', 'Q49766'] ['Q1512602', 'P102', 'Q49768']
ASK WHERE { resource:Q1512602 property:P102 resource:Q49768 . resource:Q1512602 property:P102 resource:Q49766 }
Yes
action is_in
entity Gerhard Stolz
action intersection
action find_reverse
entity Alliance '90/The Greens
relation member of political party
action find_reverse
entity Social Democratic Party of Germany
relation member of political party
['Gerhard Stolz', 'member of political party', "Alliance '90/The Greens"] ['Gerhard Stolz', 'member of political party', 'Social Democratic Party of Germany']
ASK WHERE { resource:Gerhard_Stolz property:member_of_political_party resource:Social_Democratic_Party_of_Germany . resource:Gerhard_Stolz property:member_of_political_party resource:Alliance_'90/The_Greens }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1022 Q2208453
P190
Q56061
USER
Is Vintarovci twin city of Stuttgart ?
(Q1022,P190,Q2208453)
action is_in
entity Q2208453
action find
entity Q1022
relation P190
['Q1022', 'P190', 'Q2208453']
ASK WHERE { resource:Q1022 property:P190 resource:Q2208453 }
Stuttgart Vintarovci
action is_in
entity Vintarovci
action find
entity Stuttgart
relation sister city
['Stuttgart', 'sister city', 'Vintarovci']
ASK WHERE { resource:Stuttgart property:sister_city resource:Vintarovci }
[]
administrative territorial entity
SYSTEM
NO
(Q1022,P190,Q2208453)
action is_in
entity Q2208453
action find
entity Q1022
relation P190
[ANSWER]
['Q1022', 'P190', 'Q2208453']
ASK WHERE { resource:Q1022 property:P190 resource:Q2208453 }
No
action is_in
entity Vintarovci
action find
entity Stuttgart
relation sister city
['Stuttgart', 'sister city', 'Vintarovci']
ASK WHERE { resource:Stuttgart property:sister_city resource:Vintarovci }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1022
P47
Q1048835
USER
Which political territories have a shared border with Stuttgart ?
(Q1022,P47,c(Q1048835))
action filter_type
action find
entity Q1022
relation P47
type Q1048835
['Q1022', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q1022 property:P47 ?i . ?i rdf:type ontology:Q1048835 }
Stuttgart
action filter_type
action find
entity Stuttgart
relation shares border with
type political territorial entity
['Stuttgart', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Stuttgart property:shares_border_with ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q8541 Q8536 Q8533
SYSTEM
Ludwigsburg, Böblingen, Esslingen
Q8533 Q8541 Q8536 Q8528
(Q1022,P47,c(Q1048835))
action filter_type
action find
entity Q1022
relation P47
type Q1048835
[ANSWERS] have a shared border with Stuttgart
['Q1022', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q1022 property:P47 ?i . ?i rdf:type ontology:Q1048835 }
Esslingen Ludwigsburg Böblingen Rems-Murr
Ludwigsburg, Böblingen and Esslingen have a shared border with Stuttgart
Ludwigsburg Böblingen Esslingen
action filter_type
action find
entity Stuttgart
relation shares border with
type political territorial entity
['Stuttgart', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Stuttgart property:shares_border_with ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8533
P36
Q56061
USER
Which administrative territory is the capital of Esslingen ?
(Q8533,P36,c(Q56061))
action filter_type
action find
entity Q8533
relation P36
type Q56061
['Q8533', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q8533 property:P36 ?m . ?m rdf:type ontology:Q56061 }
Esslingen
action filter_type
action find
entity Esslingen
relation capital
type administrative territorial entity
['Esslingen', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Esslingen property:capital ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3786
SYSTEM
Esslingen am Neckar
Q3786
(Q8533,P36,c(Q56061))
action filter_type
action find
entity Q8533
relation P36
type Q56061
In [ANSWER] is the capital of Esslingen
['Q8533', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q8533 property:P36 ?m . ?m rdf:type ontology:Q56061 }
Esslingen am Neckar
In Esslingen am Neckar is the capital of Esslingen
Esslingen am Neckar
action filter_type
action find
entity Esslingen
relation capital
type administrative territorial entity
['Esslingen', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Esslingen property:capital ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q278422
Q56061
USER
And also tell me about Msinga Local Municipality?
(Q278422,P36,c(Q56061))
action filter_type
action find
entity Q278422
relation P36
type Q56061
['Q278422', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q278422 property:P36 ?f . ?f rdf:type ontology:Q56061 }
Msinga Local Municipality
action filter_type
action find
entity Msinga Local Municipality
relation capital
type administrative territorial entity
['Msinga Local Municipality', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Msinga_Local_Municipality property:capital ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2459294
SYSTEM
Tugela Ferry
Q2459294
(Q278422,P36,c(Q56061))
action filter_type
action find
entity Q278422
relation P36
type Q56061
[ANSWER]
['Q278422', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q278422 property:P36 ?f . ?f rdf:type ontology:Q56061 }
Tugela Ferry
Tugela Ferry
action filter_type
action find
entity Msinga Local Municipality
relation capital
type administrative territorial entity
['Msinga Local Municipality', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Msinga_Local_Municipality property:capital ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q1048835 Q1190554 Q15617994
USER
Which political territories are approximately 1135 events or administrative territories located in ?
(c(Q1190554)|c(Q15617994),P17,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q1190554
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q15617994
value 1135
[[{'concept': 'Q1190554'}, {'concept': 'Q15617994'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?a = 1135 ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) ?r WHERE { { ?s property:P17 ?r . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1190554 } UNION { ?s property:P17 ?r . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } } GROUP BY ?r } }
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type event
action find_reverse_tuple_counts
relation country
type political territorial entity
type designation for an administrative territorial entity
value 1135
[[{'concept': 'event'}, {'concept': 'designation for an administrative territorial entity'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?a = 1135 ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) ?r WHERE { { ?s property:country ?r . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:event } UNION { ?s property:country ?r . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?r } }
[]
political territorial entity event designation for an administrative territorial entity
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q785 Q193619 Q769 Q685 Q699964 Q763 Q13767 Q34617 Q22880 Q9676 Q641138 Q664 Q693551 Q13353 Q766 Q848383 Q5705 Q13726 Q953068 Q16 Q5785 Q35 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q778 Q2002138 Q3899 Q35672 Q25228 Q408 Q1747689 Q781 Q691 Q757 Q9648 Q231 Q234 Q2991382 Q40 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q1190554)|c(Q15617994),P17,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q1190554
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q15617994
value 1135
[ANSWERS] are approximately 1135 events or administrative territories located in
[[{'concept': 'Q1190554'}, {'concept': 'Q15617994'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?a = 1135 ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) ?r WHERE { { ?s property:P17 ?r . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1190554 } UNION { ?s property:P17 ?r . ?r rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } } GROUP BY ?r } }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves New Zealand Landgraviate of Hesse-Darmstadt Montserrat Jamaica Duchy of Rome Catalonia Albay South-West Africa Canada Cayman Islands Denmark Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands The Bahamas Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Australia Ancient Rome Antigua and Barbuda Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Austria Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
Australia, Denmark and Canada are approximately 1135 events or administrative territories located in
Australia Denmark Canada
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type event
action find_reverse_tuple_counts
relation country
type political territorial entity
type designation for an administrative territorial entity
value 1135
[[{'concept': 'event'}, {'concept': 'designation for an administrative territorial entity'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { FILTER ( ?a = 1135 ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?a ) ?r WHERE { { ?s property:country ?r . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:event } UNION { ?s property:country ?r . ?r rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?r } }
[]