Simple Question (Direct)
Simple Question
Q1243429
P937
Q515
USER
Which city is the work location of Helmut Jung ?
(Q1243429,P937,c(Q515))
action filter_type
action find
entity Q1243429
relation P937
type Q515
['Q1243429', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { resource:Q1243429 property:P937 ?m . ?m rdf:type ontology:Q515 }
Helmut Jung
action filter_type
action find
entity Helmut Jung
relation work location
type city
['Helmut Jung', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { resource:Helmut_Jung property:work_location ?m . ?m rdf:type ontology:city }
[]
city
Q1721
SYSTEM
Wiesbaden
Q1721
(Q1243429,P937,c(Q515))
action filter_type
action find
entity Q1243429
relation P937
type Q515
[ANSWER] is the work location of Helmut Jung
['Q1243429', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?m WHERE { resource:Q1243429 property:P937 ?m . ?m rdf:type ontology:Q515 }
Wiesbaden
Wiesbaden is the work location of Helmut Jung
Wiesbaden
action filter_type
action find
entity Helmut Jung
relation work location
type city
['Helmut Jung', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?m WHERE { resource:Helmut_Jung property:work_location ?m . ?m rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1243429
P102
Q7278
USER
Which political party is that person a member of ?
(Q1721,P102,c(Q7278))
action filter_type
action find
entity Q1243429
relation P102
type Q7278
['Q1721', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { resource:Q1243429 property:P102 ?q . ?q rdf:type ontology:Q7278 }
Helmut Jung
action filter_type
action find
entity Helmut Jung
relation member of political party
type political party
['Wiesbaden', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { resource:Helmut_Jung property:member_of_political_party ?q . ?q rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q1721,P102,c(Q7278))
action filter_type
action find
entity Q1243429
relation P102
type Q7278
[ANSWER] is that person a member of
['Q1721', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?q WHERE { resource:Q1243429 property:P102 ?q . ?q rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Social Democratic Party of Germany is that person a member of
Social Democratic Party of Germany
action filter_type
action find
entity Helmut Jung
relation member of political party
type political party
['Wiesbaden', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?q WHERE { resource:Helmut_Jung property:member_of_political_party ?q . ?q rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1243429
P106
Q12737077
USER
Which occupations are the professions of that person ?
(Q49768,P106,c(Q12737077))
action filter_type
action find
entity Q1243429
relation P106
type Q12737077
['Q49768', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q1243429 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Helmut Jung
action filter_type
action find
entity Helmut Jung
relation occupation
type occupation
['Social Democratic Party of Germany', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Helmut_Jung property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q42973 Q82955
SYSTEM
architect, politician
Q42973 Q82955
(Q49768,P106,c(Q12737077))
action filter_type
action find
entity Q1243429
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q49768', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q1243429 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
architect politician
The professions of that person are architect and politician
architect politician
action filter_type
action find
entity Helmut Jung
relation occupation
type occupation
['Social Democratic Party of Germany', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Helmut_Jung property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q15432101
P106
Q502895
USER
Do Albert Brenner have the profession of those occupations ?
(Q15432101,P106,Q42973) (Q15432101,P106,Q82955)
action is_in
entity prev_answer
action find
entity Q15432101
relation P106
['Q15432101', 'P106', 'Q42973'] ['Q15432101', 'P106', 'Q82955']
ASK WHERE { VALUES ( ?i ) { ( resource:Q42973 ) ( resource:Q82955 ) } . resource:Q15432101 property:P106 ?i }
Albert Brenner
action is_in
entity prev_answer
action find
entity Albert Brenner
relation occupation
['Albert Brenner', 'occupation', 'architect'] ['Albert Brenner', 'occupation', 'politician']
ASK WHERE { VALUES ( ?i ) { ( resource:architect ) ( resource:politician ) } . resource:Albert_Brenner property:occupation ?i }
[]
common name
SYSTEM
YES
(Q15432101,P106,Q42973) (Q15432101,P106,Q82955)
action is_in
entity prev_answer
action find
entity Q15432101
relation P106
[ANSWER]
['Q15432101', 'P106', 'Q42973'] ['Q15432101', 'P106', 'Q82955']
ASK WHERE { VALUES ( ?i ) { ( resource:Q42973 ) ( resource:Q82955 ) } . resource:Q15432101 property:P106 ?i }
Yes
action is_in
entity prev_answer
action find
entity Albert Brenner
relation occupation
['Albert Brenner', 'occupation', 'architect'] ['Albert Brenner', 'occupation', 'politician']
ASK WHERE { VALUES ( ?i ) { ( resource:architect ) ( resource:politician ) } . resource:Albert_Brenner property:occupation ?i }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6769627 Q1243429
P39
Q12737077
USER
Which occupations were a position held by Helmut Jung or Mark Schneider ?
OR((Q1243429,P39,c(Q12737077)), (Q6769627,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q1243429
relation P39
action find
entity Q6769627
relation P39
type Q12737077
{'OR': [['Q1243429', 'P39', {'concept': 'Q12737077'}], ['Q6769627', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { ?h property:P39 ?i . VALUES ( ?h ) { ( resource:Q6769627 ) ( resource:Q1243429 ) } } . ?i rdf:type ontology:Q12737077 }
Mark Schneider Helmut Jung
action filter_type
action union
action find
entity Helmut Jung
relation position held
action find
entity Mark Schneider
relation position held
type occupation
{'OR': [['Helmut Jung', 'position held', {'concept': 'occupation'}], ['Mark Schneider', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { ?h property:position_held ?i . VALUES ( ?h ) { ( resource:Mark_Schneider ) ( resource:Helmut_Jung ) } } . ?i rdf:type ontology:occupation }
[]
occupation
Q17519166 Q17502533
SYSTEM
Member of the Hessian Parliament, member of the Ohio House of Representatives
Q17519166 Q17502533
OR((Q1243429,P39,c(Q12737077)), (Q6769627,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q1243429
relation P39
action find
entity Q6769627
relation P39
type Q12737077
[ANSWERS] were a position held by Helmut Jung or Mark Schneider
{'OR': [['Q1243429', 'P39', {'concept': 'Q12737077'}], ['Q6769627', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?i WHERE { { ?h property:P39 ?i . VALUES ( ?h ) { ( resource:Q6769627 ) ( resource:Q1243429 ) } } . ?i rdf:type ontology:Q12737077 }
Member of the Hessian Parliament member of the Ohio House of Representatives
Member of the Hessian Parliament and member of the Ohio House of Representatives were a position held by Helmut Jung or Mark Schneider
Member of the Hessian Parliament member of the Ohio House of Representatives
action filter_type
action union
action find
entity Helmut Jung
relation position held
action find
entity Mark Schneider
relation position held
type occupation
{'OR': [['Helmut Jung', 'position held', {'concept': 'occupation'}], ['Mark Schneider', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?i WHERE { { ?h property:position_held ?i . VALUES ( ?h ) { ( resource:Mark_Schneider ) ( resource:Helmut_Jung ) } } . ?i rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P748
Q178706 Q11204 Q12737077
USER
How many occupations did around 1 institutions and legislatures appoint ?
(c(Q12737077),P748,c(Q178706)|c(Q11204))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q11204
value 1
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { FILTER ( ?f = 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?f ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:Q11204 ) ( ontology:Q178706 ) } } GROUP BY ?c } }
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type legislature
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { FILTER ( ?f = 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?f ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:legislature ) ( ontology:institution ) } } GROUP BY ?c } }
[]
institution legislature occupation
SYSTEM
13
Q11793630 Q740126 Q655407 Q1161813 Q596123 Q1043568 Q8882 Q866680 Q26000995 Q4122271 Q634291 Q735587 Q81066
(c(Q12737077),P748,c(Q178706)|c(Q11204))
action count
action approx
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q11204
value 1
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { FILTER ( ?f = 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?f ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:Q11204 ) ( ontology:Q178706 ) } } GROUP BY ?c } }
governor of national banks of Serbia and Yugoslavia President of the European Parliament President of the People's Republic of China President of the United Nations General Assembly president of Bangladesh Prime Minister of Vietnam President of the European Commission President of Vietnam President of the Parliament of Catalonia Premier of the People's Republic of China High Representative of the Union for Foreign Affairs and Security Policy President of the European Council United Nations Secretary-General
13
action count
action approx
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type legislature
value 1
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { FILTER ( ?f = 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?z ) AS ?f ) WHERE { ?z rdf:type ?m . VALUES ( ?m ) { ( ontology:legislature ) ( ontology:institution ) } } GROUP BY ?c } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1721
P190
Q56061
USER
How many administrative territories are partner towns of Wiesbaden ?
(Q1721,P190,c(Q56061))
action count
action filter_type
action find
entity Q1721
relation P190
type Q56061
['Q1721', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q1721 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Wiesbaden
action count
action filter_type
action find
entity Wiesbaden
relation sister city
type administrative territorial entity
['Wiesbaden', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Wiesbaden property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
7
Q69354 Q437 Q665489 Q10313 Q152436 Q1296 Q1025830
(Q1721,P190,c(Q56061))
action count
action filter_type
action find
entity Q1721
relation P190
type Q56061
[ANSWER]
['Q1721', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q1721 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Montreux Ljubljana Royal Tunbridge Wells Donostia/San Sebastián Kfar Saba Ghent Ocotal
7
action count
action filter_type
action find
entity Wiesbaden
relation sister city
type administrative territorial entity
['Wiesbaden', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Wiesbaden property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q42973
P921
Q2342494
USER
Which collectable has architect as its main topic ?
(c(Q2342494),P921,Q42973)
action filter_type
action find_reverse
entity Q42973
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q42973']
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q42973 . ?q rdf:type ontology:Q2342494 }
architect
action filter_type
action find_reverse
entity architect
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'architect']
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:architect . ?q rdf:type ontology:collectable }
[]
collectable
Q23595644
SYSTEM
Episodes in the Gothic revival : six church architects
Q23595644
(c(Q2342494),P921,Q42973)
action filter_type
action find_reverse
entity Q42973
relation P921
type Q2342494
[ANSWER] has architect as its main topic
[{'concept': 'Q2342494'}, 'P921', 'Q42973']
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q42973 . ?q rdf:type ontology:Q2342494 }
Episodes in the Gothic revival : six church architects
Episodes in the Gothic revival : six church architects has architect as its main topic
Episodes in the Gothic revival : six church architects
action filter_type
action find_reverse
entity architect
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'architect']
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:architect . ?q rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17519166
P361
Q1752346
USER
What is Member of the Hessian Parliament a portion of ?
(Q17519166,P361,c(Q1752346))
action filter_type
action find
entity Q17519166
relation P361
type Q1752346
['Q17519166', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?h WHERE { resource:Q17519166 property:P361 ?h . ?h rdf:type ontology:Q1752346 }
Member of the Hessian Parliament
action filter_type
action find
entity Member of the Hessian Parliament
relation part of
type assembly
['Member of the Hessian Parliament', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?h WHERE { resource:Member_of_the_Hessian_Parliament property:part_of ?h . ?h rdf:type ontology:assembly }
[]
assembly
Q510511
SYSTEM
Landtag of Hesse
Q510511
(Q17519166,P361,c(Q1752346))
action filter_type
action find
entity Q17519166
relation P361
type Q1752346
Member of the Hessian Parliament a portion of is the [ANSWER]
['Q17519166', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?h WHERE { resource:Q17519166 property:P361 ?h . ?h rdf:type ontology:Q1752346 }
Landtag of Hesse
Member of the Hessian Parliament a portion of is the Landtag of Hesse
Landtag of Hesse
action filter_type
action find
entity Member of the Hessian Parliament
relation part of
type assembly
['Member of the Hessian Parliament', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?h WHERE { resource:Member_of_the_Hessian_Parliament property:part_of ?h . ?h rdf:type ontology:assembly }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17481175
Q1752346
USER
And also tell me about Member of the Landtag of Baden-Württemberg?
(Q17481175,P361,c(Q1752346))
action filter_type
action find
entity Q17481175
relation P361
type Q1752346
['Q17481175', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?k WHERE { resource:Q17481175 property:P361 ?k . ?k rdf:type ontology:Q1752346 }
Member of the Landtag of Baden-Württemberg
action filter_type
action find
entity Member of the Landtag of Baden-Württemberg
relation part of
type assembly
['Member of the Landtag of Baden-Württemberg', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?k WHERE { resource:Member_of_the_Landtag_of_Baden-Württemberg property:part_of ?k . ?k rdf:type ontology:assembly }
[]
assembly
Q455697
SYSTEM
Landtag of Baden-Württemberg
Q455697
(Q17481175,P361,c(Q1752346))
action filter_type
action find
entity Q17481175
relation P361
type Q1752346
[ANSWER]
['Q17481175', 'P361', {'concept': 'Q1752346'}]
SELECT DISTINCT ?k WHERE { resource:Q17481175 property:P361 ?k . ?k rdf:type ontology:Q1752346 }
Landtag of Baden-Württemberg
Landtag of Baden-Württemberg
action filter_type
action find
entity Member of the Landtag of Baden-Württemberg
relation part of
type assembly
['Member of the Landtag of Baden-Württemberg', 'part of', {'concept': 'assembly'}]
SELECT DISTINCT ?k WHERE { resource:Member_of_the_Landtag_of_Baden-Württemberg property:part_of ?k . ?k rdf:type ontology:assembly }
[]