Simple Question (Direct)
Simple Question
Q91454
P19
Q486972
USER
Which human settlement is the place of birth of Detlev Buchholz ?
(Q91454,P19,c(Q486972))
action filter_type
action find
entity Q91454
relation P19
type Q486972
['Q91454', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?x WHERE { resource:Q91454 property:P19 ?x . ?x rdf:type ontology:Q486972 }
Detlev Buchholz
action filter_type
action find
entity Detlev Buchholz
relation place of birth
type human settlement
['Detlev Buchholz', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?x WHERE { resource:Detlev_Buchholz property:place_of_birth ?x . ?x rdf:type ontology:human_settlement }
[]
human settlement
Q1792
SYSTEM
Gdańsk
Q1792
(Q91454,P19,c(Q486972))
action filter_type
action find
entity Q91454
relation P19
type Q486972
[ANSWER] is the place of birth of Detlev Buchholz
['Q91454', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?x WHERE { resource:Q91454 property:P19 ?x . ?x rdf:type ontology:Q486972 }
Gdańsk
Gdańsk is the place of birth of Detlev Buchholz
Gdańsk
action filter_type
action find
entity Detlev Buchholz
relation place of birth
type human settlement
['Detlev Buchholz', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?x WHERE { resource:Detlev_Buchholz property:place_of_birth ?x . ?x rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q91454
P937
Q486972
USER
Where did that person work ?
(Q1792,P937,c(Q486972))
action filter_type
action find
entity Q91454
relation P937
type Q486972
['Q1792', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { resource:Q91454 property:P937 ?u . ?u rdf:type ontology:Q486972 }
Detlev Buchholz
action filter_type
action find
entity Detlev Buchholz
relation work location
type human settlement
['Gdańsk', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { resource:Detlev_Buchholz property:work_location ?u . ?u rdf:type ontology:human_settlement }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q1792,P937,c(Q486972))
action filter_type
action find
entity Q91454
relation P937
type Q486972
That person worked in [ANSWER]
['Q1792', 'P937', {'concept': 'Q486972'}]
SELECT DISTINCT ?u WHERE { resource:Q91454 property:P937 ?u . ?u rdf:type ontology:Q486972 }
Hamburg
That person worked in Hamburg
Hamburg
action filter_type
action find
entity Detlev Buchholz
relation work location
type human settlement
['Gdańsk', 'work location', {'concept': 'human settlement'}]
SELECT DISTINCT ?u WHERE { resource:Detlev_Buchholz property:work_location ?u . ?u rdf:type ontology:human_settlement }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1055 Q1642703 Q183
P17
Q1048835
USER
Is that human settlement located in Redecilla del Campo and Germany ?
(Q1055,P17,Q1642703) (Q1055,P17,Q183)
action is_in
entity Q1055
action intersection
action find_reverse
entity Q1642703
relation P17
action find_reverse
entity Q183
relation P17
['Q1055', 'P17', 'Q1642703'] ['Q1055', 'P17', 'Q183']
ASK WHERE { resource:Q1055 property:P17 resource:Q1642703 . resource:Q1055 property:P17 resource:Q183 }
Hamburg Redecilla del Campo Germany
action is_in
entity Hamburg
action intersection
action find_reverse
entity Redecilla del Campo
relation country
action find_reverse
entity Germany
relation country
['Hamburg', 'country', 'Redecilla del Campo'] ['Hamburg', 'country', 'Germany']
ASK WHERE { resource:Hamburg property:country resource:Redecilla_del_Campo . resource:Hamburg property:country resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q1055,P17,Q1642703) (Q1055,P17,Q183)
action is_in
entity Q1055
action intersection
action find_reverse
entity Q1642703
relation P17
action find_reverse
entity Q183
relation P17
[ANSWER]
['Q1055', 'P17', 'Q1642703'] ['Q1055', 'P17', 'Q183']
ASK WHERE { resource:Q1055 property:P17 resource:Q1642703 . resource:Q1055 property:P17 resource:Q183 }
NO and YES respectively
action is_in
entity Hamburg
action intersection
action find_reverse
entity Redecilla del Campo
relation country
action find_reverse
entity Germany
relation country
['Hamburg', 'country', 'Redecilla del Campo'] ['Hamburg', 'country', 'Germany']
ASK WHERE { resource:Hamburg property:country resource:Redecilla_del_Campo . resource:Hamburg property:country resource:Germany }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1792 Q1425428
P190
Q56061
USER
Is Newcastle upon Tyne partner town of Gdańsk ?
(Q1792,P190,Q1425428)
action is_in
entity Q1425428
action find
entity Q1792
relation P190
['Q1792', 'P190', 'Q1425428']
ASK WHERE { resource:Q1792 property:P190 resource:Q1425428 }
Gdańsk Newcastle upon Tyne
action is_in
entity Newcastle upon Tyne
action find
entity Gdańsk
relation sister city
['Gdańsk', 'sister city', 'Newcastle upon Tyne']
ASK WHERE { resource:Gdańsk property:sister_city resource:Newcastle_upon_Tyne }
[]
administrative territorial entity
SYSTEM
YES
(Q1792,P190,Q1425428)
action is_in
entity Q1425428
action find
entity Q1792
relation P190
[ANSWER]
['Q1792', 'P190', 'Q1425428']
ASK WHERE { resource:Q1792 property:P190 resource:Q1425428 }
Yes
action is_in
entity Newcastle upon Tyne
action find
entity Gdańsk
relation sister city
['Gdańsk', 'sister city', 'Newcastle upon Tyne']
ASK WHERE { resource:Gdańsk property:sister_city resource:Newcastle_upon_Tyne }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15854718 Q1792
P190 P20
Q56061
USER
Which administrative territories are twin towns of Gdańsk or did Willy Geisler die ?
OR((Q1792,P190,c(Q56061)), (Q15854718,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1792
relation P190
action find
entity Q15854718
relation P20
type Q56061
{'OR': [['Q1792', 'P190', {'concept': 'Q56061'}], ['Q15854718', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q15854718 property:P20 ?m } UNION { resource:Q1792 property:P190 ?m } } . ?m rdf:type ontology:Q56061 }
Willy Geisler Gdańsk
action filter_type
action union
action find
entity Gdańsk
relation sister city
action find
entity Willy Geisler
relation place of death
type administrative territorial entity
{'OR': [['Gdańsk', 'sister city', {'concept': 'administrative territorial entity'}], ['Willy Geisler', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Willy_Geisler property:place_of_death ?m } UNION { resource:Gdańsk property:sister_city ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q37320 Q33959 Q898 Q1425428 Q326577 Q750424 Q26881 Q1520 Q1296 Q2656
SYSTEM
Some of them are Cleveland, Nice, Omsk, Newcastle upon Tyne, Bytów, Navapolatsk, Helsingør, Astana, Ghent, Palermo
Q33959 Q26345 Q8686 Q38511 Q37320 Q1829 Q326577 Q2656 Q750424 Q26881 Q64 Q1520 Q1874 Q34370 Q216 Q1492 Q1296 Q1425428 Q898
OR((Q1792,P190,c(Q56061)), (Q15854718,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1792
relation P190
action find
entity Q15854718
relation P20
type Q56061
[ANSWERS] are twin towns of Gdańsk or did Willy Geisler die
{'OR': [['Q1792', 'P190', {'concept': 'Q56061'}], ['Q15854718', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q15854718 property:P20 ?m } UNION { resource:Q1792 property:P190 ?m } } . ?m rdf:type ontology:Q56061 }
Nice Kalmar Shanghai Turku Cleveland Kaliningrad Bytów Palermo Navapolatsk Helsingør Berlin Astana Odessa Rotterdam Vilnius Barcelona Ghent Newcastle upon Tyne Omsk
Cleveland, Nice, Omsk, Newcastle upon Tyne, Bytów, Navapolatsk, Helsingør, Astana, Ghent and Palermo are twin towns of Gdańsk or did Willy Geisler die
Cleveland Nice Omsk Newcastle upon Tyne Bytów Navapolatsk Helsingør Astana Ghent Palermo
action filter_type
action union
action find
entity Gdańsk
relation sister city
action find
entity Willy Geisler
relation place of death
type administrative territorial entity
{'OR': [['Gdańsk', 'sister city', {'concept': 'administrative territorial entity'}], ['Willy Geisler', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Willy_Geisler property:place_of_death ?m } UNION { resource:Gdańsk property:sister_city ?m } } . ?m rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6532091
P190
Q486972
USER
Are Leszczydół-Podwielątki twin city of those administrative territories ?
(Q6532091,P190,Q37320) (Q6532091,P190,Q33959) (Q6532091,P190,Q898) (Q6532091,P190,Q1425428) (Q6532091,P190,Q326577) (Q6532091,P190,Q750424) (Q6532091,P190,Q26881) (Q6532091,P190,Q1520) (Q6532091,P190,Q1296) (Q6532091,P190,Q2656)
action is_in
entity prev_answer
action find
entity Q6532091
relation P190
['Q6532091', 'P190', 'Q37320'] ['Q6532091', 'P190', 'Q33959'] ['Q6532091', 'P190', 'Q898'] ['Q6532091', 'P190', 'Q1425428'] ['Q6532091', 'P190', 'Q326577'] ['Q6532091', 'P190', 'Q750424'] ['Q6532091', 'P190', 'Q26881'] ['Q6532091', 'P190', 'Q1520'] ['Q6532091', 'P190', 'Q1296'] ['Q6532091', 'P190', 'Q2656']
ASK WHERE { resource:Q6532091 property:P190 ?v . VALUES ( ?v ) { ( resource:Q33959 ) ( resource:Q26345 ) ( resource:Q8686 ) } }
Leszczydół-Podwielątki
action is_in
entity prev_answer
action find
entity Leszczydół-Podwielątki
relation sister city
['Leszczydół-Podwielątki', 'sister city', 'Cleveland'] ['Leszczydół-Podwielątki', 'sister city', 'Nice'] ['Leszczydół-Podwielątki', 'sister city', 'Omsk'] ['Leszczydół-Podwielątki', 'sister city', 'Newcastle upon Tyne'] ['Leszczydół-Podwielątki', 'sister city', 'Bytów'] ['Leszczydół-Podwielątki', 'sister city', 'Navapolatsk'] ['Leszczydół-Podwielątki', 'sister city', 'Helsingør'] ['Leszczydół-Podwielątki', 'sister city', 'Astana'] ['Leszczydół-Podwielątki', 'sister city', 'Ghent'] ['Leszczydół-Podwielątki', 'sister city', 'Palermo']
ASK WHERE { resource:Leszczydół-Podwielątki property:sister_city ?v . VALUES ( ?v ) { ( resource:Nice ) ( resource:Kalmar ) ( resource:Shanghai ) } }
[]
human settlement
SYSTEM
NO
(Q6532091,P190,Q37320) (Q6532091,P190,Q33959) (Q6532091,P190,Q898) (Q6532091,P190,Q1425428) (Q6532091,P190,Q326577) (Q6532091,P190,Q750424) (Q6532091,P190,Q26881) (Q6532091,P190,Q1520) (Q6532091,P190,Q1296) (Q6532091,P190,Q2656)
action is_in
entity prev_answer
action find
entity Q6532091
relation P190
[ANSWER]
['Q6532091', 'P190', 'Q37320'] ['Q6532091', 'P190', 'Q33959'] ['Q6532091', 'P190', 'Q898'] ['Q6532091', 'P190', 'Q1425428'] ['Q6532091', 'P190', 'Q326577'] ['Q6532091', 'P190', 'Q750424'] ['Q6532091', 'P190', 'Q26881'] ['Q6532091', 'P190', 'Q1520'] ['Q6532091', 'P190', 'Q1296'] ['Q6532091', 'P190', 'Q2656']
ASK WHERE { resource:Q6532091 property:P190 ?v . VALUES ( ?v ) { ( resource:Q33959 ) ( resource:Q26345 ) ( resource:Q8686 ) } }
No
action is_in
entity prev_answer
action find
entity Leszczydół-Podwielątki
relation sister city
['Leszczydół-Podwielątki', 'sister city', 'Cleveland'] ['Leszczydół-Podwielątki', 'sister city', 'Nice'] ['Leszczydół-Podwielątki', 'sister city', 'Omsk'] ['Leszczydół-Podwielątki', 'sister city', 'Newcastle upon Tyne'] ['Leszczydół-Podwielątki', 'sister city', 'Bytów'] ['Leszczydół-Podwielątki', 'sister city', 'Navapolatsk'] ['Leszczydół-Podwielątki', 'sister city', 'Helsingør'] ['Leszczydół-Podwielątki', 'sister city', 'Astana'] ['Leszczydół-Podwielątki', 'sister city', 'Ghent'] ['Leszczydół-Podwielątki', 'sister city', 'Palermo']
ASK WHERE { resource:Leszczydół-Podwielątki property:sister_city ?v . VALUES ( ?v ) { ( resource:Nice ) ( resource:Kalmar ) ( resource:Shanghai ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33959
P1376
Q20667921
USER
Which french administrative divisions have Nice as their capital ?
(Q33959,P1376,c(Q20667921))
action filter_type
action find
entity Q33959
relation P1376
type Q20667921
['Q33959', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { resource:Q33959 property:P1376 ?w . ?w rdf:type ontology:Q20667921 }
Nice
action filter_type
action find
entity Nice
relation capital of
type type of french administrative division
['Nice', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { resource:Nice property:capital_of ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1413374 Q1545434 Q1599596
SYSTEM
canton of Nice-2, canton of Nice-13, canton of Nice-10
Q1413374 Q1545434 Q1599596 Q941430 Q1225371 Q1726503 Q1726500 Q1726511 Q1726510 Q1125305 Q1663628 Q186775 Q1726509 Q1726507
(Q33959,P1376,c(Q20667921))
action filter_type
action find
entity Q33959
relation P1376
type Q20667921
[ANSWERS] have Nice as their capital
['Q33959', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?w WHERE { resource:Q33959 property:P1376 ?w . ?w rdf:type ontology:Q20667921 }
canton of Nice-2 canton of Nice-13 canton of Nice-10 canton of Nice-9 canton of Nice-5 canton of Nice-12 canton of Nice-1 canton of Nice-8 canton of Nice-7 canton of Nice-6 canton of Nice-11 canton of Nice-14 canton of Nice-4 canton of Nice-3
Canton of Nice-2, canton of Nice-13 and canton of Nice-10 have Nice as their capital
canton of Nice-2 canton of Nice-13 canton of Nice-10
action filter_type
action find
entity Nice
relation capital of
type type of french administrative division
['Nice', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?w WHERE { resource:Nice property:capital_of ?w . ?w rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1413374 Q1545434 Q1599596
P1376
Q56061
USER
Which administrative territories are the capital of those french administrative divisions ?
(c(Q56061),P1376,Q1413374) (c(Q56061),P1376,Q1545434) (c(Q56061),P1376,Q1599596)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q1413374'] [{'concept': 'Q56061'}, 'P1376', 'Q1545434'] [{'concept': 'Q56061'}, 'P1376', 'Q1599596']
SELECT DISTINCT ?i WHERE { ?i property:P1376 ?h . ?i rdf:type ontology:Q56061 . VALUES ( ?h ) { ( resource:Q1413374 ) ( resource:Q1545434 ) ( resource:Q1599596 ) } }
canton of Nice-2 canton of Nice-13 canton of Nice-10
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'canton of Nice-2'] [{'concept': 'administrative territorial entity'}, 'capital of', 'canton of Nice-13'] [{'concept': 'administrative territorial entity'}, 'capital of', 'canton of Nice-10']
SELECT DISTINCT ?i WHERE { ?i property:capital_of ?h . ?i rdf:type ontology:administrative_territorial_entity . VALUES ( ?h ) { ( resource:canton_of_Nice-2 ) ( resource:canton_of_Nice-13 ) ( resource:canton_of_Nice-10 ) } }
[]
administrative territorial entity
Q33959
SYSTEM
Nice
Q33959
(c(Q56061),P1376,Q1413374) (c(Q56061),P1376,Q1545434) (c(Q56061),P1376,Q1599596)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[ANSWER] is the capital of those french administrative divisions
[{'concept': 'Q56061'}, 'P1376', 'Q1413374'] [{'concept': 'Q56061'}, 'P1376', 'Q1545434'] [{'concept': 'Q56061'}, 'P1376', 'Q1599596']
SELECT DISTINCT ?i WHERE { ?i property:P1376 ?h . ?i rdf:type ontology:Q56061 . VALUES ( ?h ) { ( resource:Q1413374 ) ( resource:Q1545434 ) ( resource:Q1599596 ) } }
Nice
Nice is the capital of those french administrative divisions
Nice
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'canton of Nice-2'] [{'concept': 'administrative territorial entity'}, 'capital of', 'canton of Nice-13'] [{'concept': 'administrative territorial entity'}, 'capital of', 'canton of Nice-10']
SELECT DISTINCT ?i WHERE { ?i property:capital_of ?h . ?i rdf:type ontology:administrative_territorial_entity . VALUES ( ?h ) { ( resource:canton_of_Nice-2 ) ( resource:canton_of_Nice-13 ) ( resource:canton_of_Nice-10 ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1413374
P36
Q56061
USER
Which administrative territory is known as the capital of canton of Nice-2 ?
(Q33959,P36,c(Q56061))
action filter_type
action find
entity Q1413374
relation P36
type Q56061
['Q33959', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q1413374 property:P36 ?x }
canton of Nice-2
action filter_type
action find
entity canton of Nice-2
relation capital
type administrative territorial entity
['Nice', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:canton_of_Nice-2 property:capital ?x }
[]
administrative territorial entity
Q33959
SYSTEM
Nice
Q33959
(Q33959,P36,c(Q56061))
action filter_type
action find
entity Q1413374
relation P36
type Q56061
[ANSWER] is known as the capital of canton of [ANSWER]-2
['Q33959', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q1413374 property:P36 ?x }
Nice
Nice is known as the capital of canton of Nice-2
Nice
action filter_type
action find
entity canton of Nice-2
relation capital
type administrative territorial entity
['Nice', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:canton_of_Nice-2 property:capital ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q33959
P162
Q201658
USER
Which film genres have been produced by that administrative territory ?
(c(Q201658),P162,Q33959)
action filter_type
action find_reverse
entity Q33959
relation P162
type Q201658
[{'concept': 'Q201658'}, 'P162', 'Q33959']
SELECT DISTINCT ?u WHERE { ?u property:P162 resource:Q33959 . ?u rdf:type ontology:Q201658 }
Nice
action filter_type
action find_reverse
entity Nice
relation producer
type film genre
[{'concept': 'film genre'}, 'producer', 'Nice']
SELECT DISTINCT ?u WHERE { ?u property:producer resource:Nice . ?u rdf:type ontology:film_genre }
[]
film genre
Q1865719 Q1865718
SYSTEM
Little Moritz demande Rosalie en mariage, Little Moritz enlève Rosalie
Q1865719 Q1865718
(c(Q201658),P162,Q33959)
action filter_type
action find_reverse
entity Q33959
relation P162
type Q201658
[ANSWERS] have been produced by that administrative territory
[{'concept': 'Q201658'}, 'P162', 'Q33959']
SELECT DISTINCT ?u WHERE { ?u property:P162 resource:Q33959 . ?u rdf:type ontology:Q201658 }
Little Moritz demande Rosalie en mariage Little Moritz enlève Rosalie
Little Moritz demande Rosalie en mariage and Little Moritz enlève Rosalie have been produced by that administrative territory
Little Moritz demande Rosalie en mariage Little Moritz enlève Rosalie
action filter_type
action find_reverse
entity Nice
relation producer
type film genre
[{'concept': 'film genre'}, 'producer', 'Nice']
SELECT DISTINCT ?u WHERE { ?u property:producer resource:Nice . ?u rdf:type ontology:film_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q33959
P931
Q62447
USER
Which city does that administrative territory serve ?
(c(Q62447),P931,Q1865719) (c(Q62447),P931,Q1865718)
action filter_type
action find_reverse
entity Q33959
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q1865719'] [{'concept': 'Q62447'}, 'P931', 'Q1865718']
SELECT DISTINCT ?a WHERE { ?a property:P931 resource:Q33959 . ?a rdf:type ontology:Q62447 }
Nice
action filter_type
action find_reverse
entity Nice
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Little Moritz demande Rosalie en mariage'] [{'concept': 'aerodrome'}, 'place served by airport', 'Little Moritz enlève Rosalie']
SELECT DISTINCT ?a WHERE { ?a property:place_served_by_airport resource:Nice . ?a rdf:type ontology:aerodrome }
[]
aerodrome
Q821557
SYSTEM
Nice Côte d'Azur Airport
Q821557
(c(Q62447),P931,Q1865719) (c(Q62447),P931,Q1865718)
action filter_type
action find_reverse
entity Q33959
relation P931
type Q62447
That administrative territory serves [ANSWER]
[{'concept': 'Q62447'}, 'P931', 'Q1865719'] [{'concept': 'Q62447'}, 'P931', 'Q1865718']
SELECT DISTINCT ?a WHERE { ?a property:P931 resource:Q33959 . ?a rdf:type ontology:Q62447 }
Nice Côte d'Azur Airport
That administrative territory serves Nice Côte d'Azur Airport
Nice Côte d'Azur Airport
action filter_type
action find_reverse
entity Nice
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Little Moritz demande Rosalie en mariage'] [{'concept': 'aerodrome'}, 'place served by airport', 'Little Moritz enlève Rosalie']
SELECT DISTINCT ?a WHERE { ?a property:place_served_by_airport resource:Nice . ?a rdf:type ontology:aerodrome }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q33959
P190
Q515 Q56061
USER
How many cities or administrative territories are partner town of Nice ?
(c(Q515),P190,Q33959) (c(Q56061),P190,Q33959)
action count
action union
action filter_type
action find_reverse
entity Q33959
relation P190
type Q515
action filter_type
action find_reverse
entity Q33959
relation P190
type Q56061
[{'concept': 'Q515'}, 'P190', 'Q33959'] [{'concept': 'Q56061'}, 'P190', 'Q33959']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:Q515 ) ( ontology:Q56061 ) } }
Nice
action count
action union
action filter_type
action find_reverse
entity Nice
relation sister city
type city
action filter_type
action find_reverse
entity Nice
relation sister city
type administrative territorial entity
[{'concept': 'city'}, 'sister city', 'Nice'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Nice']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } }
[]
city administrative territorial entity
SYSTEM
14
Q641 Q14328 Q11959 Q8678 Q23436 Q17151 Q128499 Q1461 Q2090 Q200267 Q340757 Q5465 Q3825 Q192225
(c(Q515),P190,Q33959) (c(Q56061),P190,Q33959)
action count
action union
action filter_type
action find_reverse
entity Q33959
relation P190
type Q515
action filter_type
action find_reverse
entity Q33959
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q515'}, 'P190', 'Q33959'] [{'concept': 'Q56061'}, 'P190', 'Q33959']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:Q515 ) ( ontology:Q56061 ) } }
Venice Santa Cruz de Tenerife Alicante Rio de Janeiro Edinburgh Thessaloniki Yalta Manila Nuremberg Kamakura La Maddalena Cape Town Libreville Netanya
14
action count
action union
action filter_type
action find_reverse
entity Nice
relation sister city
type city
action filter_type
action find_reverse
entity Nice
relation sister city
type administrative territorial entity
[{'concept': 'city'}, 'sister city', 'Nice'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Nice']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { ?i rdf:type ?c . VALUES ( ?c ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4083238 Q1865718
P27 P495
Q15617994
USER
Which administrative territories are the countries of origin of Little Moritz enlève Rosalie or are Kola Beldy an inhabitant of ?
OR((Q1865718,P495,c(Q15617994)), (Q4083238,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1865718
relation P495
action find
entity Q4083238
relation P27
type Q15617994
{'OR': [['Q1865718', 'P495', {'concept': 'Q15617994'}], ['Q4083238', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1865718 property:P495 ?b } UNION { resource:Q4083238 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Kola Beldy Little Moritz enlève Rosalie
action filter_type
action union
action find
entity Little Moritz enlève Rosalie
relation country of origin
action find
entity Kola Beldy
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Little Moritz enlève Rosalie', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Kola Beldy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Little_Moritz_enlève_Rosalie property:country_of_origin ?b } UNION { resource:Kola_Beldy property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q159
SYSTEM
France, Russia
Q142 Q159
OR((Q1865718,P495,c(Q15617994)), (Q4083238,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1865718
relation P495
action find
entity Q4083238
relation P27
type Q15617994
[ANSWERS] are the countries of origin of Little Moritz enlève Rosalie or are Kola Beldy an inhabitant of
{'OR': [['Q1865718', 'P495', {'concept': 'Q15617994'}], ['Q4083238', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1865718 property:P495 ?b } UNION { resource:Q4083238 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
France Russia
France and Russia are the countries of origin of Little Moritz enlève Rosalie or are Kola Beldy an inhabitant of
France Russia
action filter_type
action union
action find
entity Little Moritz enlève Rosalie
relation country of origin
action find
entity Kola Beldy
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Little Moritz enlève Rosalie', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Kola Beldy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Little_Moritz_enlève_Rosalie property:country_of_origin ?b } UNION { resource:Kola_Beldy property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]