Simple Question (Direct)
Simple Question
Q6305059
P641
Q349
USER
Which sport was Juha Tuomi a part of ?
(Q6305059,P641,c(Q349))
action filter_type
action find
entity Q6305059
relation P641
type Q349
['Q6305059', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q6305059 property:P641 ?b . ?b rdf:type ontology:Q349 }
Juha Tuomi
action filter_type
action find
entity Juha Tuomi
relation sport
type sport
['Juha Tuomi', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Juha_Tuomi property:sport ?b . ?b rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6305059,P641,c(Q349))
action filter_type
action find
entity Q6305059
relation P641
type Q349
Juha Tuomi was the [ANSWER] of
['Q6305059', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?b WHERE { resource:Q6305059 property:P641 ?b . ?b rdf:type ontology:Q349 }
association football
Juha Tuomi was the association football of
association football
action filter_type
action find
entity Juha Tuomi
relation sport
type sport
['Juha Tuomi', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?b WHERE { resource:Juha_Tuomi property:sport ?b . ?b rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
Which territory is the origin of that sport ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?f WHERE { resource:Q2736 property:P495 ?f . ?f rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:association_football property:country_of_origin ?f . ?f rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
[ANSWER] is the origin of that sport
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?f WHERE { resource:Q2736 property:P495 ?f . ?f rdf:type ontology:Q1496967 }
England
England is the origin of that sport
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:association_football property:country_of_origin ?f . ?f rdf:type ontology:territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q21 Q635226 Q477646
P17
Q15617994
USER
Is that territory situated in Neudorf-Bornstein and Wudu District ?
(Q21,P17,Q635226) (Q21,P17,Q477646)
action is_in
entity Q21
action intersection
action find_reverse
entity Q635226
relation P17
action find_reverse
entity Q477646
relation P17
['Q21', 'P17', 'Q635226'] ['Q21', 'P17', 'Q477646']
ASK WHERE { resource:Q21 property:P17 resource:Q635226 . resource:Q21 property:P17 resource:Q477646 }
England Neudorf-Bornstein Wudu District
action is_in
entity England
action intersection
action find_reverse
entity Neudorf-Bornstein
relation country
action find_reverse
entity Wudu District
relation country
['England', 'country', 'Neudorf-Bornstein'] ['England', 'country', 'Wudu District']
ASK WHERE { resource:England property:country resource:Neudorf-Bornstein . resource:England property:country resource:Wudu_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q21,P17,Q635226) (Q21,P17,Q477646)
action is_in
entity Q21
action intersection
action find_reverse
entity Q635226
relation P17
action find_reverse
entity Q477646
relation P17
[ANSWER]
['Q21', 'P17', 'Q635226'] ['Q21', 'P17', 'Q477646']
ASK WHERE { resource:Q21 property:P17 resource:Q635226 . resource:Q21 property:P17 resource:Q477646 }
No
action is_in
entity England
action intersection
action find_reverse
entity Neudorf-Bornstein
relation country
action find_reverse
entity Wudu District
relation country
['England', 'country', 'Neudorf-Bornstein'] ['England', 'country', 'Wudu District']
ASK WHERE { resource:England property:country resource:Neudorf-Bornstein . resource:England property:country resource:Wudu_District }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q6305059 Q553572
P19
Q15617994
USER
Was Juha Tuomi born in Kaltenholzhausen ?
(Q6305059,P19,Q553572)
action is_in
entity Q553572
action find
entity Q6305059
relation P19
['Q6305059', 'P19', 'Q553572']
ASK WHERE { resource:Q6305059 property:P19 resource:Q553572 }
Juha Tuomi Kaltenholzhausen
action is_in
entity Kaltenholzhausen
action find
entity Juha Tuomi
relation place of birth
['Juha Tuomi', 'place of birth', 'Kaltenholzhausen']
ASK WHERE { resource:Juha_Tuomi property:place_of_birth resource:Kaltenholzhausen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q6305059,P19,Q553572)
action is_in
entity Q553572
action find
entity Q6305059
relation P19
[ANSWER]
['Q6305059', 'P19', 'Q553572']
ASK WHERE { resource:Q6305059 property:P19 resource:Q553572 }
No
action is_in
entity Kaltenholzhausen
action find
entity Juha Tuomi
relation place of birth
['Juha Tuomi', 'place of birth', 'Kaltenholzhausen']
ASK WHERE { resource:Juha_Tuomi property:place_of_birth resource:Kaltenholzhausen }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q21
P17
Q15617994 Q7275
USER
How many administrative territories and states are England situated in ?
(Q21,P17,c(Q15617994)) (Q21,P17,c(Q7275))
action count
action union
action filter_type
action find
entity Q21
relation P17
type Q15617994
action filter_type
action find
entity Q21
relation P17
type Q7275
['Q21', 'P17', {'concept': 'Q15617994'}] ['Q21', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } . ?o rdf:type ?a }
England
action count
action union
action filter_type
action find
entity England
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity England
relation country
type state
['England', 'country', {'concept': 'designation for an administrative territorial entity'}] ['England', 'country', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } . ?o rdf:type ?a }
[]
designation for an administrative territorial entity state
SYSTEM
1 administrative territories and 2 states
Q161885 Q174193 Q145
(Q21,P17,c(Q15617994)) (Q21,P17,c(Q7275))
action count
action union
action filter_type
action find
entity Q21
relation P17
type Q15617994
action filter_type
action find
entity Q21
relation P17
type Q7275
[ANSWER]
['Q21', 'P17', {'concept': 'Q15617994'}] ['Q21', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:Q15617994 ) ( ontology:Q7275 ) } . ?o rdf:type ?a }
Kingdom of Great Britain United Kingdom of Great Britain and Ireland United Kingdom
1 administrative territories and 2 states
action count
action union
action filter_type
action find
entity England
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity England
relation country
type state
['England', 'country', {'concept': 'designation for an administrative territorial entity'}] ['England', 'country', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?a ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:state ) } . ?o rdf:type ?a }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q6305059 Q7568383 Q556489
P19
Q15617994
USER
Does Juha Tuomi have location of birth at South Sanpete School District and Sprötau ?
(Q6305059,P19,Q7568383) (Q6305059,P19,Q556489)
action is_in
entity Q6305059
action intersection
action find_reverse
entity Q7568383
relation P19
action find_reverse
entity Q556489
relation P19
['Q6305059', 'P19', 'Q7568383'] ['Q6305059', 'P19', 'Q556489']
ASK WHERE { resource:Q6305059 property:P19 resource:Q7568383 . resource:Q6305059 property:P19 resource:Q556489 }
Juha Tuomi South Sanpete School District Sprötau
action is_in
entity Juha Tuomi
action intersection
action find_reverse
entity South Sanpete School District
relation place of birth
action find_reverse
entity Sprötau
relation place of birth
['Juha Tuomi', 'place of birth', 'South Sanpete School District'] ['Juha Tuomi', 'place of birth', 'Sprötau']
ASK WHERE { resource:Juha_Tuomi property:place_of_birth resource:South_Sanpete_School_District . resource:Juha_Tuomi property:place_of_birth resource:Sprötau }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q6305059,P19,Q7568383) (Q6305059,P19,Q556489)
action is_in
entity Q6305059
action intersection
action find_reverse
entity Q7568383
relation P19
action find_reverse
entity Q556489
relation P19
[ANSWER]
['Q6305059', 'P19', 'Q7568383'] ['Q6305059', 'P19', 'Q556489']
ASK WHERE { resource:Q6305059 property:P19 resource:Q7568383 . resource:Q6305059 property:P19 resource:Q556489 }
No
action is_in
entity Juha Tuomi
action intersection
action find_reverse
entity South Sanpete School District
relation place of birth
action find_reverse
entity Sprötau
relation place of birth
['Juha Tuomi', 'place of birth', 'South Sanpete School District'] ['Juha Tuomi', 'place of birth', 'Sprötau']
ASK WHERE { resource:Juha_Tuomi property:place_of_birth resource:South_Sanpete_School_District . resource:Juha_Tuomi property:place_of_birth resource:Sprötau }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q21 Q1321018 Q12113981
P36
Q56061
USER
Does England consist of Ticoș and Coșereni as its capital ?
(Q21,P36,Q1321018) (Q21,P36,Q12113981)
action is_in
entity Q21
action intersection
action find_reverse
entity Q1321018
relation P36
action find_reverse
entity Q12113981
relation P36
['Q21', 'P36', 'Q1321018'] ['Q21', 'P36', 'Q12113981']
ASK WHERE { resource:Q21 property:P36 resource:Q1321018 . resource:Q21 property:P36 resource:Q12113981 }
England Ticoș Coșereni
action is_in
entity England
action intersection
action find_reverse
entity Ticoș
relation capital
action find_reverse
entity Coșereni
relation capital
['England', 'capital', 'Ticoș'] ['England', 'capital', 'Coșereni']
ASK WHERE { resource:England property:capital resource:Ticoș . resource:England property:capital resource:Coșereni }
[]
administrative territorial entity
SYSTEM
NO
(Q21,P36,Q1321018) (Q21,P36,Q12113981)
action is_in
entity Q21
action intersection
action find_reverse
entity Q1321018
relation P36
action find_reverse
entity Q12113981
relation P36
[ANSWER]
['Q21', 'P36', 'Q1321018'] ['Q21', 'P36', 'Q12113981']
ASK WHERE { resource:Q21 property:P36 resource:Q1321018 . resource:Q21 property:P36 resource:Q12113981 }
No
action is_in
entity England
action intersection
action find_reverse
entity Ticoș
relation capital
action find_reverse
entity Coșereni
relation capital
['England', 'capital', 'Ticoș'] ['England', 'capital', 'Coșereni']
ASK WHERE { resource:England property:capital resource:Ticoș . resource:England property:capital resource:Coșereni }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q11881312 Q6305059
P19 P27
Q15617994
USER
Which administrative territories were Juha Tuomi born at and are Martti Linna an inhabitant of ?
AND((Q6305059,P19,c(Q15617994)), (Q11881312,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q6305059
relation P19
action find
entity Q11881312
relation P27
type Q15617994
{'AND': [['Q6305059', 'P19', {'concept': 'Q15617994'}], ['Q11881312', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { resource:Q11881312 property:P27 ?f . resource:Q6305059 property:P19 ?f . ?f rdf:type ontology:Q15617994 }
Martti Linna Juha Tuomi
action filter_type
action intersection
action find
entity Juha Tuomi
relation place of birth
action find
entity Martti Linna
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Juha Tuomi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Martti Linna', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { resource:Martti_Linna property:country_of_citizenship ?f . resource:Juha_Tuomi property:place_of_birth ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33
SYSTEM
Finland
Q33
AND((Q6305059,P19,c(Q15617994)), (Q11881312,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q6305059
relation P19
action find
entity Q11881312
relation P27
type Q15617994
Juha Tuomi Martti Linna were born at the [ANSWER] and are an inhabitant of
{'AND': [['Q6305059', 'P19', {'concept': 'Q15617994'}], ['Q11881312', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { resource:Q11881312 property:P27 ?f . resource:Q6305059 property:P19 ?f . ?f rdf:type ontology:Q15617994 }
Finland
Juha Tuomi Martti Linna were born at the Finland and are an inhabitant of
Finland
action filter_type
action intersection
action find
entity Juha Tuomi
relation place of birth
action find
entity Martti Linna
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Juha Tuomi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Martti Linna', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { resource:Martti_Linna property:country_of_citizenship ?f . resource:Juha_Tuomi property:place_of_birth ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q47483 Q553572
P47 P17
Q1048835
USER
Which political territories are Kaltenholzhausen a part of or have a shared border with Sagunto ?
OR((Q553572,P17,c(Q1048835)), (Q47483,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q553572
relation P17
action find
entity Q47483
relation P47
type Q1048835
{'OR': [['Q553572', 'P17', {'concept': 'Q1048835'}], ['Q47483', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q553572 property:P17 ?l } UNION { resource:Q47483 property:P47 ?l } } . ?l rdf:type ontology:Q1048835 }
Sagunto Kaltenholzhausen
action filter_type
action union
action find
entity Kaltenholzhausen
relation country
action find
entity Sagunto
relation shares border with
type political territorial entity
{'OR': [['Kaltenholzhausen', 'country', {'concept': 'political territorial entity'}], ['Sagunto', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Kaltenholzhausen property:country ?l } UNION { resource:Sagunto property:shares_border_with ?l } } . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1917827 Q1989401 Q1993450 Q1810161 Q762373 Q1769975 Q367868 Q2041882 Q183 Q1769907
SYSTEM
Some of them are Benavites, Estivella, Quartell, Náquera, Faura, Benifairó de les Valls, Algar de Palancia, Petrés, Germany, Alfondeguilla
Q23028 Q1917827 Q183 Q1637512 Q1904015 Q367868 Q2041882 Q1769975 Q2040100 Q1810161 Q1992994 Q762373 Q1919278 Q1769907 Q1645719 Q55839 Q1917433 Q428020 Q1812748 Q1918014 Q1989401 Q1993450
OR((Q553572,P17,c(Q1048835)), (Q47483,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q553572
relation P17
action find
entity Q47483
relation P47
type Q1048835
[ANSWERS] are Kaltenholzhausen a part of or have a shared border with Sagunto
{'OR': [['Q553572', 'P17', {'concept': 'Q1048835'}], ['Q47483', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q553572 property:P17 ?l } UNION { resource:Q47483 property:P47 ?l } } . ?l rdf:type ontology:Q1048835 }
Puçol Benavites Germany la Vall d'Uixó Canet d'en Berenguer Algar de Palancia Petrés Benifairó de les Valls el Puig de Santa Maria Náquera Quart de les Valls Faura Algímia d'Alfara Alfondeguilla Soneja Gilet Almenara Albalat dels Tarongers Torres Torres Alfara de la Baronia Estivella Quartell
Benavites, Estivella, Quartell, Náquera, Faura, Benifairó de les Valls, Algar de Palancia, Petrés, Germany and Alfondeguilla are Kaltenholzhausen a part of or have a shared border with Sagunto
Benavites Estivella Quartell Náquera Faura Benifairó de les Valls Algar de Palancia Petrés Germany Alfondeguilla
action filter_type
action union
action find
entity Kaltenholzhausen
relation country
action find
entity Sagunto
relation shares border with
type political territorial entity
{'OR': [['Kaltenholzhausen', 'country', {'concept': 'political territorial entity'}], ['Sagunto', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Kaltenholzhausen property:country ?l } UNION { resource:Sagunto property:shares_border_with ?l } } . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P361
Q56061 Q2221906
USER
How many administrative territories and geographic locations are Germany a component of ?
(Q183,P361,c(Q56061)) (Q183,P361,c(Q2221906))
action count
action union
action filter_type
action find
entity Q183
relation P361
type Q56061
action filter_type
action find
entity Q183
relation P361
type Q2221906
['Q183', 'P361', {'concept': 'Q56061'}] ['Q183', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { resource:Q183 property:P361 ?n . ?n rdf:type ontology:Q56061 } UNION { resource:Q183 property:P361 ?n . ?n rdf:type ontology:Q2221906 } }
Germany
action count
action union
action filter_type
action find
entity Germany
relation part of
type administrative territorial entity
action filter_type
action find
entity Germany
relation part of
type geographic location
['Germany', 'part of', {'concept': 'administrative territorial entity'}] ['Germany', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { resource:Germany property:part_of ?n . ?n rdf:type ontology:administrative_territorial_entity } UNION { resource:Germany property:part_of ?n . ?n rdf:type ontology:geographic_location } }
[]
administrative territorial entity geographic location
SYSTEM
1 administrative territories and 2 geographic locations
Q46 Q458 Q27509
(Q183,P361,c(Q56061)) (Q183,P361,c(Q2221906))
action count
action union
action filter_type
action find
entity Q183
relation P361
type Q56061
action filter_type
action find
entity Q183
relation P361
type Q2221906
[ANSWER]
['Q183', 'P361', {'concept': 'Q56061'}] ['Q183', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { resource:Q183 property:P361 ?n . ?n rdf:type ontology:Q56061 } UNION { resource:Q183 property:P361 ?n . ?n rdf:type ontology:Q2221906 } }
Europe European Union Central Europe
1 administrative territories and 2 geographic locations
action count
action union
action filter_type
action find
entity Germany
relation part of
type administrative territorial entity
action filter_type
action find
entity Germany
relation part of
type geographic location
['Germany', 'part of', {'concept': 'administrative territorial entity'}] ['Germany', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { { resource:Germany property:part_of ?n . ?n rdf:type ontology:administrative_territorial_entity } UNION { resource:Germany property:part_of ?n . ?n rdf:type ontology:geographic_location } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P88
Q12280 Q41176
USER
How many bridges and buildings have Germany as their commisioner ?
(c(Q12280),P88,Q183) (c(Q41176),P88,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P88
type Q12280
action filter_type
action find_reverse
entity Q183
relation P88
type Q41176
[{'concept': 'Q12280'}, 'P88', 'Q183'] [{'concept': 'Q41176'}, 'P88', 'Q183']
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { ?d property:P88 resource:Q183 . ?d rdf:type ontology:Q12280 } UNION { ?d property:P88 resource:Q183 . ?d rdf:type ontology:Q41176 } }
Germany
action count
action union
action filter_type
action find_reverse
entity Germany
relation commissioned by
type bridge
action filter_type
action find_reverse
entity Germany
relation commissioned by
type building
[{'concept': 'bridge'}, 'commissioned by', 'Germany'] [{'concept': 'building'}, 'commissioned by', 'Germany']
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { ?d property:commissioned_by resource:Germany . ?d rdf:type ontology:bridge } UNION { ?d property:commissioned_by resource:Germany . ?d rdf:type ontology:building } }
[]
bridge building
SYSTEM
1 bridges and 1 buildings
Q17416722 Q15715928
(c(Q12280),P88,Q183) (c(Q41176),P88,Q183)
action count
action union
action filter_type
action find_reverse
entity Q183
relation P88
type Q12280
action filter_type
action find_reverse
entity Q183
relation P88
type Q41176
[ANSWER]
[{'concept': 'Q12280'}, 'P88', 'Q183'] [{'concept': 'Q41176'}, 'P88', 'Q183']
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { ?d property:P88 resource:Q183 . ?d rdf:type ontology:Q12280 } UNION { ?d property:P88 resource:Q183 . ?d rdf:type ontology:Q41176 } }
Presse- und Informationsamt der Bundesregierung (Bonn) Fußgängerüberführung Wielstraße
1 bridges and 1 buildings
action count
action union
action filter_type
action find_reverse
entity Germany
relation commissioned by
type bridge
action filter_type
action find_reverse
entity Germany
relation commissioned by
type building
[{'concept': 'bridge'}, 'commissioned by', 'Germany'] [{'concept': 'building'}, 'commissioned by', 'Germany']
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { ?d property:commissioned_by resource:Germany . ?d rdf:type ontology:bridge } UNION { ?d property:commissioned_by resource:Germany . ?d rdf:type ontology:building } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P30
Q2221906
USER
Which geographic location is Germany located in ?
(Q183,P30,c(Q2221906))
action filter_type
action find
entity Q183
relation P30
type Q2221906
['Q183', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q183 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Germany
action filter_type
action find
entity Germany
relation continent
type geographic location
['Germany', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Germany property:continent ?p . ?p rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q183,P30,c(Q2221906))
action filter_type
action find
entity Q183
relation P30
type Q2221906
Germany is located in [ANSWER]
['Q183', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q183 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Europe
Germany is located in Europe
Europe
action filter_type
action find
entity Germany
relation continent
type geographic location
['Germany', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Germany property:continent ?p . ?p rdf:type ontology:geographic_location }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6439412
Q2221906
USER
And how about Krusha Peak?
(Q6439412,P30,c(Q2221906))
action filter_type
action find
entity Q6439412
relation P30
type Q2221906
['Q6439412', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q2221906 . resource:Q6439412 property:P30 ?a }
Krusha Peak
action filter_type
action find
entity Krusha Peak
relation continent
type geographic location
['Krusha Peak', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:geographic_location . resource:Krusha_Peak property:continent ?a }
[]
geographic location
Q51
SYSTEM
Antarctica
Q51
(Q6439412,P30,c(Q2221906))
action filter_type
action find
entity Q6439412
relation P30
type Q2221906
[ANSWER]
['Q6439412', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q2221906 . resource:Q6439412 property:P30 ?a }
Antarctica
Antarctica
action filter_type
action find
entity Krusha Peak
relation continent
type geographic location
['Krusha Peak', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:geographic_location . resource:Krusha_Peak property:continent ?a }
[]