Simple Question (Direct)
Simple Question
Q1505146
P102
Q7278
USER
Which political party is Georg Lehmann a member of ?
(Q1505146,P102,c(Q7278))
action filter_type
action find
entity Q1505146
relation P102
type Q7278
['Q1505146', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?p WHERE { resource:Q1505146 property:P102 ?p . ?p rdf:type ontology:Q7278 }
Georg Lehmann
action filter_type
action find
entity Georg Lehmann
relation member of political party
type political party
['Georg Lehmann', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?p WHERE { resource:Georg_Lehmann property:member_of_political_party ?p . ?p rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q1505146,P102,c(Q7278))
action filter_type
action find
entity Q1505146
relation P102
type Q7278
Party [ANSWER] is Georg Lehmann a member of
['Q1505146', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?p WHERE { resource:Q1505146 property:P102 ?p . ?p rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Party Social Democratic Party of Germany is Georg Lehmann a member of
Social Democratic Party of Germany
action filter_type
action find
entity Georg Lehmann
relation member of political party
type political party
['Georg Lehmann', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?p WHERE { resource:Georg_Lehmann property:member_of_political_party ?p . ?p rdf:type ontology:political_party }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1505146
P937
Q56061
USER
What is the work location of that person ?
(Q49768,P937,c(Q56061))
action filter_type
action find
entity Q1505146
relation P937
type Q56061
['Q49768', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1505146 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Georg Lehmann
action filter_type
action find
entity Georg Lehmann
relation work location
type administrative territorial entity
['Social Democratic Party of Germany', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Georg_Lehmann property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1715
SYSTEM
Hanover
Q1715
(Q49768,P937,c(Q56061))
action filter_type
action find
entity Q1505146
relation P937
type Q56061
The work location of that person is in [ANSWER]
['Q49768', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1505146 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Hanover
The work location of that person is in Hanover
Hanover
action filter_type
action find
entity Georg Lehmann
relation work location
type administrative territorial entity
['Social Democratic Party of Germany', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Georg_Lehmann property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1605484 Q1505146
P47 P27
Q1048835
USER
Which political territories are Georg Lehmann an inhabitant of or are bordered by Maside ?
OR((Q1505146,P27,c(Q1048835)), (Q1605484,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1505146
relation P27
action find
entity Q1605484
relation P47
type Q1048835
{'OR': [['Q1505146', 'P27', {'concept': 'Q1048835'}], ['Q1605484', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1505146 property:P27 ?s } UNION { resource:Q1605484 property:P47 ?s } } . ?s rdf:type ontology:Q1048835 }
Maside Georg Lehmann
action filter_type
action union
action find
entity Georg Lehmann
relation country of citizenship
action find
entity Maside
relation shares border with
type political territorial entity
{'OR': [['Georg Lehmann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Maside', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Georg_Lehmann property:country_of_citizenship ?s } UNION { resource:Maside property:shares_border_with ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1606281 Q1627616 Q605311 Q1603760 Q183 Q1607558
SYSTEM
San Amaro, Amoeiro, Punxín, San Cristovo de Cea, Germany, O Carballiño
Q1606281 Q1627616 Q605311 Q1603760 Q183 Q1607558
OR((Q1505146,P27,c(Q1048835)), (Q1605484,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1505146
relation P27
action find
entity Q1605484
relation P47
type Q1048835
[ANSWERS] are Georg Lehmann an inhabitant of or are bordered by Maside
{'OR': [['Q1505146', 'P27', {'concept': 'Q1048835'}], ['Q1605484', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1505146 property:P27 ?s } UNION { resource:Q1605484 property:P47 ?s } } . ?s rdf:type ontology:Q1048835 }
San Amaro Amoeiro Punxín San Cristovo de Cea Germany O Carballiño
San Amaro, Amoeiro, Punxín, San Cristovo de Cea, Germany and O Carballiño are Georg Lehmann an inhabitant of or are bordered by Maside
San Amaro Amoeiro Punxín San Cristovo de Cea Germany O Carballiño
action filter_type
action union
action find
entity Georg Lehmann
relation country of citizenship
action find
entity Maside
relation shares border with
type political territorial entity
{'OR': [['Georg Lehmann', 'country of citizenship', {'concept': 'political territorial entity'}], ['Maside', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Georg_Lehmann property:country_of_citizenship ?s } UNION { resource:Maside property:shares_border_with ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q766
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with around the same number of political territories as Jamaica ?
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?o ) WHERE { ?c property:P530 ?p . ?c rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?c } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { resource:Q766 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } }
Jamaica
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?o ) WHERE { ?c property:diplomatic_relation ?p . ?c rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?c } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { resource:Jamaica property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with around the same number of political territories as Jamaica
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?o ) WHERE { ?c property:P530 ?p . ?c rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q1048835 } GROUP BY ?c } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { resource:Q766 property:P530 ?a . ?a rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, Austria and New Zealand have diplomatic relationships with around the same number of political territories as Jamaica
Denmark Austria New Zealand
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?o ) WHERE { ?c property:diplomatic_relation ?p . ?c rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?c } . FILTER ( ?o = ?m ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { resource:Jamaica property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q254310
P530
Q15617994
USER
Do Landsberied have diplomatic associations with those political territories ?
(Q254310,P530,Q35) (Q254310,P530,Q40) (Q254310,P530,Q664)
action is_in
entity prev_answer
action find
entity Q254310
relation P530
['Q254310', 'P530', 'Q35'] ['Q254310', 'P530', 'Q40'] ['Q254310', 'P530', 'Q664']
ASK WHERE { resource:Q254310 property:P530 ?j . VALUES ( ?j ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Landsberied
action is_in
entity prev_answer
action find
entity Landsberied
relation diplomatic relation
['Landsberied', 'diplomatic relation', 'Denmark'] ['Landsberied', 'diplomatic relation', 'Austria'] ['Landsberied', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Landsberied property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q254310,P530,Q35) (Q254310,P530,Q40) (Q254310,P530,Q664)
action is_in
entity prev_answer
action find
entity Q254310
relation P530
[ANSWER]
['Q254310', 'P530', 'Q35'] ['Q254310', 'P530', 'Q40'] ['Q254310', 'P530', 'Q664']
ASK WHERE { resource:Q254310 property:P530 ?j . VALUES ( ?j ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Landsberied
relation diplomatic relation
['Landsberied', 'diplomatic relation', 'Denmark'] ['Landsberied', 'diplomatic relation', 'Austria'] ['Landsberied', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Landsberied property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1715
P1376
Q7275
USER
Which state has Hanover has its first city ?
(Q1715,P1376,c(Q7275))
action filter_type
action find
entity Q1715
relation P1376
type Q7275
['Q1715', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?t WHERE { resource:Q1715 property:P1376 ?t . ?t rdf:type ontology:Q7275 }
Hanover
action filter_type
action find
entity Hanover
relation capital of
type state
['Hanover', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?t WHERE { resource:Hanover property:capital_of ?t . ?t rdf:type ontology:state }
[]
state
Q164079
SYSTEM
Kingdom of Hanover
Q164079
(Q1715,P1376,c(Q7275))
action filter_type
action find
entity Q1715
relation P1376
type Q7275
[ANSWER] has Hanover has its first city
['Q1715', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?t WHERE { resource:Q1715 property:P1376 ?t . ?t rdf:type ontology:Q7275 }
Kingdom of Hanover
Kingdom of Hanover has Hanover has its first city
Kingdom of Hanover
action filter_type
action find
entity Hanover
relation capital of
type state
['Hanover', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?t WHERE { resource:Hanover property:capital_of ?t . ?t rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1715
P206
Q355304
USER
Which watercourses are located in the neighbourhood of that administrative territory ?
(Q164079,P206,c(Q355304))
action filter_type
action find
entity Q1715
relation P206
type Q355304
['Q164079', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?s WHERE { resource:Q1715 property:P206 ?s . ?s rdf:type ontology:Q355304 }
Hanover
action filter_type
action find
entity Hanover
relation located next to body of water
type watercourse
['Kingdom of Hanover', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?s WHERE { resource:Hanover property:located_next_to_body_of_water ?s . ?s rdf:type ontology:watercourse }
[]
watercourse
Q161051 Q48480 Q464568
SYSTEM
Leine, Mittelland Canal, Ihme
Q161051 Q48480 Q464568
(Q164079,P206,c(Q355304))
action filter_type
action find
entity Q1715
relation P206
type Q355304
[ANSWERS] are located in the neighbourhood of that administrative territory
['Q164079', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?s WHERE { resource:Q1715 property:P206 ?s . ?s rdf:type ontology:Q355304 }
Leine Mittelland Canal Ihme
Leine, Mittelland Canal and Ihme are located in the neighbourhood of that administrative territory
Leine Mittelland Canal Ihme
action filter_type
action find
entity Hanover
relation located next to body of water
type watercourse
['Kingdom of Hanover', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?s WHERE { resource:Hanover property:located_next_to_body_of_water ?s . ?s rdf:type ontology:watercourse }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1584481 Q1715
P206 P974
Q355304
USER
Which watercourses are situated in the neighbourhood of Hanover or are the tributaries Sandy River ?
OR((Q1715,P206,c(Q355304)), (Q1584481,P974,c(Q355304)))
action filter_type
action union
action find
entity Q1715
relation P206
action find
entity Q1584481
relation P974
type Q355304
{'OR': [['Q1715', 'P206', {'concept': 'Q355304'}], ['Q1584481', 'P974', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1715 property:P206 ?h } UNION { resource:Q1584481 property:P974 ?h } } . ?h rdf:type ontology:Q355304 }
Sandy River Hanover
action filter_type
action union
action find
entity Hanover
relation located next to body of water
action find
entity Sandy River
relation tributary
type watercourse
{'OR': [['Hanover', 'located next to body of water', {'concept': 'watercourse'}], ['Sandy River', 'tributary', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Hanover property:located_next_to_body_of_water ?h } UNION { resource:Sandy_River property:tributary ?h } } . ?h rdf:type ontology:watercourse }
[]
watercourse
Q161051 Q464568 Q2927978 Q48480
SYSTEM
Leine, Ihme, Bull Run River, Mittelland Canal
Q161051 Q464568 Q2927978 Q48480
OR((Q1715,P206,c(Q355304)), (Q1584481,P974,c(Q355304)))
action filter_type
action union
action find
entity Q1715
relation P206
action find
entity Q1584481
relation P974
type Q355304
[ANSWERS] are situated in the neighbourhood of Hanover or are the tributaries Sandy River
{'OR': [['Q1715', 'P206', {'concept': 'Q355304'}], ['Q1584481', 'P974', {'concept': 'Q355304'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1715 property:P206 ?h } UNION { resource:Q1584481 property:P974 ?h } } . ?h rdf:type ontology:Q355304 }
Leine Ihme Bull Run River Mittelland Canal
Leine, Ihme, Bull Run River and Mittelland Canal are situated in the neighbourhood of Hanover or are the tributaries Sandy River
Leine Ihme Bull Run River Mittelland Canal
action filter_type
action union
action find
entity Hanover
relation located next to body of water
action find
entity Sandy River
relation tributary
type watercourse
{'OR': [['Hanover', 'located next to body of water', {'concept': 'watercourse'}], ['Sandy River', 'tributary', {'concept': 'watercourse'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Hanover property:located_next_to_body_of_water ?h } UNION { resource:Sandy_River property:tributary ?h } } . ?h rdf:type ontology:watercourse }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q17269091 Q1715
P190 P20
Q486972
USER
Which human settlements are twin towns of Hanover or did the expiration of Stefan Komorowski occur ?
OR((Q1715,P190,c(Q486972)), (Q17269091,P20,c(Q486972)))
action filter_type
action union
action find
entity Q1715
relation P190
action find
entity Q17269091
relation P20
type Q486972
{'OR': [['Q1715', 'P190', {'concept': 'Q486972'}], ['Q17269091', 'P20', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1715 property:P190 ?w } UNION { resource:Q17269091 property:P20 ?w } } . ?w rdf:type ontology:Q486972 }
Stefan Komorowski Hanover
action filter_type
action union
action find
entity Hanover
relation sister city
action find
entity Stefan Komorowski
relation place of death
type human settlement
{'OR': [['Hanover', 'sister city', {'concept': 'human settlement'}], ['Stefan Komorowski', 'place of death', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Hanover property:sister_city ?w } UNION { resource:Stefan_Komorowski property:place_of_death ?w } } . ?w rdf:type ontology:human_settlement }
[]
human settlement
Q268 Q31487
SYSTEM
Poznań, Kraków
Q268 Q31487
OR((Q1715,P190,c(Q486972)), (Q17269091,P20,c(Q486972)))
action filter_type
action union
action find
entity Q1715
relation P190
action find
entity Q17269091
relation P20
type Q486972
[ANSWERS] are twin towns of Hanover or did the expiration of Stefan Komorowski occur
{'OR': [['Q1715', 'P190', {'concept': 'Q486972'}], ['Q17269091', 'P20', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q1715 property:P190 ?w } UNION { resource:Q17269091 property:P20 ?w } } . ?w rdf:type ontology:Q486972 }
Poznań Kraków
Poznań and Kraków are twin towns of Hanover or did the expiration of Stefan Komorowski occur
Poznań Kraków
action filter_type
action union
action find
entity Hanover
relation sister city
action find
entity Stefan Komorowski
relation place of death
type human settlement
{'OR': [['Hanover', 'sister city', {'concept': 'human settlement'}], ['Stefan Komorowski', 'place of death', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Hanover property:sister_city ?w } UNION { resource:Stefan_Komorowski property:place_of_death ?w } } . ?w rdf:type ontology:human_settlement }
[]