Simple Question (Direct)
Simple Question
Q227395
P19
Q56061
USER
Which administrative territory is the place of birth of Zsuzsanna Gahse ?
(Q227395,P19,c(Q56061))
action filter_type
action find
entity Q227395
relation P19
type Q56061
['Q227395', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q227395 property:P19 ?s }
Zsuzsanna Gahse
action filter_type
action find
entity Zsuzsanna Gahse
relation place of birth
type administrative territorial entity
['Zsuzsanna Gahse', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Zsuzsanna_Gahse property:place_of_birth ?s }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q227395,P19,c(Q56061))
action filter_type
action find
entity Q227395
relation P19
type Q56061
[ANSWER] is the place of birth of Zsuzsanna Gahse
['Q227395', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q227395 property:P19 ?s }
Budapest
Budapest is the place of birth of Zsuzsanna Gahse
Budapest
action filter_type
action find
entity Zsuzsanna Gahse
relation place of birth
type administrative territorial entity
['Zsuzsanna Gahse', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Zsuzsanna_Gahse property:place_of_birth ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1781
P272
Q838948
USER
Which work of art was produced by that administrative territory ?
(c(Q838948),P272,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P272
type Q838948
[{'concept': 'Q838948'}, 'P272', 'Q1781']
SELECT DISTINCT ?g WHERE { ?g property:P272 resource:Q1781 . ?g rdf:type ontology:Q838948 }
Budapest
action filter_type
action find_reverse
entity Budapest
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Budapest']
SELECT DISTINCT ?g WHERE { ?g property:production_company resource:Budapest . ?g rdf:type ontology:work_of_art }
[]
work of art
Q873313
SYSTEM
The Red and the White
Q873313
(c(Q838948),P272,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P272
type Q838948
[ANSWER] was produced by that administrative territory
[{'concept': 'Q838948'}, 'P272', 'Q1781']
SELECT DISTINCT ?g WHERE { ?g property:P272 resource:Q1781 . ?g rdf:type ontology:Q838948 }
The Red and the White
The Red and the White was produced by that administrative territory
The Red and the White
action filter_type
action find_reverse
entity Budapest
relation production company
type work of art
[{'concept': 'work of art'}, 'production company', 'Budapest']
SELECT DISTINCT ?g WHERE { ?g property:production_company resource:Budapest . ?g rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1781
P1376
Q1162835 Q15617994
USER
How many districts of Hungary and administrative territories have Budapest as their county seat ?
(Q1781,P1376,c(Q1162835)) (Q1781,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1781
relation P1376
type Q1162835
action filter_type
action find
entity Q1781
relation P1376
type Q15617994
['Q1781', 'P1376', {'concept': 'Q1162835'}] ['Q1781', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g rdf:type ?j . VALUES ( ?j ) { ( ontology:Q1162835 ) ( ontology:Q15617994 ) } }
Budapest
action count
action union
action filter_type
action find
entity Budapest
relation capital of
type district of Hungary
action filter_type
action find
entity Budapest
relation capital of
type designation for an administrative territorial entity
['Budapest', 'capital of', {'concept': 'district of Hungary'}] ['Budapest', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g rdf:type ?j . VALUES ( ?j ) { ( ontology:district_of_Hungary ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
district of Hungary designation for an administrative territorial entity
SYSTEM
3 districts of Hungary and 1 administrative territories
Q28 Q1125982 Q850872 Q850912
(Q1781,P1376,c(Q1162835)) (Q1781,P1376,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1781
relation P1376
type Q1162835
action filter_type
action find
entity Q1781
relation P1376
type Q15617994
[ANSWER]
['Q1781', 'P1376', {'concept': 'Q1162835'}] ['Q1781', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g rdf:type ?j . VALUES ( ?j ) { ( ontology:Q1162835 ) ( ontology:Q15617994 ) } }
Hungary Central District Buda District Budakörnyék District
3 districts of Hungary and 1 administrative territories
action count
action union
action filter_type
action find
entity Budapest
relation capital of
type district of Hungary
action filter_type
action find
entity Budapest
relation capital of
type designation for an administrative territorial entity
['Budapest', 'capital of', {'concept': 'district of Hungary'}] ['Budapest', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?o ) WHERE { ?g rdf:type ?j . VALUES ( ?j ) { ( ontology:district_of_Hungary ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P740
Q2088357
USER
What are the musical ensembles that were formed at Budapest ?
(c(Q2088357),P740,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q1781']
SELECT DISTINCT ?d WHERE { ?d property:P740 resource:Q1781 . ?d rdf:type ontology:Q2088357 }
Budapest
action filter_type
action find_reverse
entity Budapest
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Budapest']
SELECT DISTINCT ?d WHERE { ?d property:location_of_formation resource:Budapest . ?d rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q1098562 Q15053519 Q19512804
SYSTEM
Ivan & The Parazol, The Idoru, Bin-Jip
Q7493638 Q7977337 Q16838330 Q5655101 Q1319562 Q1098562 Q5324760 Q15053519 Q1319176 Q7810229 Q7757872 Q19512804 Q1227347 Q16962886 Q7751359 Q456956 Q7644158
(c(Q2088357),P740,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P740
type Q2088357
The musical ensembles that were formed at Budapest are The [ANSWERS]
[{'concept': 'Q2088357'}, 'P740', 'Q1781']
SELECT DISTINCT ?d WHERE { ?d property:P740 resource:Q1781 . ?d rdf:type ontology:Q2088357 }
Shell Beach We Are Rockstars Galloping Wonder Stag Hard The Moog Ivan & The Parazol EZ Basic The Idoru The Carbonfools Tits & Clits The Poster Boy Bin-Jip P. Mobil The Trousers The Mighty Fishers Amber Smith Supersonic
The musical ensembles that were formed at Budapest are The Ivan & The Parazol, The Idoru and Bin-Jip
Ivan & The Parazol The Idoru Bin-Jip
action filter_type
action find_reverse
entity Budapest
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Budapest']
SELECT DISTINCT ?d WHERE { ?d property:location_of_formation resource:Budapest . ?d rdf:type ontology:musical_ensemble }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P1427
Q22348500
USER
Which cycling race class starts at Budapest ?
(c(Q22348500),P1427,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P1427
type Q22348500
[{'concept': 'Q22348500'}, 'P1427', 'Q1781']
SELECT DISTINCT ?e WHERE { ?e property:P1427 resource:Q1781 . ?e rdf:type ontology:Q22348500 }
Budapest
action filter_type
action find_reverse
entity Budapest
relation start point
type cycling race class defined by the International Cycling Union
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Budapest']
SELECT DISTINCT ?e WHERE { ?e property:start_point resource:Budapest . ?e rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
cycling race class defined by the International Cycling Union
Q26208898
SYSTEM
2016 Visegrad 4 Kerékpárverseny
Q26208898
(c(Q22348500),P1427,Q1781)
action filter_type
action find_reverse
entity Q1781
relation P1427
type Q22348500
[ANSWER] starts at Budapest
[{'concept': 'Q22348500'}, 'P1427', 'Q1781']
SELECT DISTINCT ?e WHERE { ?e property:P1427 resource:Q1781 . ?e rdf:type ontology:Q22348500 }
2016 Visegrad 4 Kerékpárverseny
2016 Visegrad 4 Kerékpárverseny starts at Budapest
2016 Visegrad 4 Kerékpárverseny
action filter_type
action find_reverse
entity Budapest
relation start point
type cycling race class defined by the International Cycling Union
[{'concept': 'cycling race class defined by the International Cycling Union'}, 'start point', 'Budapest']
SELECT DISTINCT ?e WHERE { ?e property:start_point resource:Budapest . ?e rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1781
P206
Q355304
USER
Which watercourse is situated nearby that administrative territory ?
(Q26208898,P206,c(Q355304))
action filter_type
action find
entity Q1781
relation P206
type Q355304
['Q26208898', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?l WHERE { resource:Q1781 property:P206 ?l . ?l rdf:type ontology:Q355304 }
Budapest
action filter_type
action find
entity Budapest
relation located next to body of water
type watercourse
['2016 Visegrad 4 Kerékpárverseny', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?l WHERE { resource:Budapest property:located_next_to_body_of_water ?l . ?l rdf:type ontology:watercourse }
[]
watercourse
Q1653
SYSTEM
Danube
Q1653
(Q26208898,P206,c(Q355304))
action filter_type
action find
entity Q1781
relation P206
type Q355304
And [ANSWER] is situated nearby that administrative territory
['Q26208898', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?l WHERE { resource:Q1781 property:P206 ?l . ?l rdf:type ontology:Q355304 }
Danube
And Danube is situated nearby that administrative territory
Danube
action filter_type
action find
entity Budapest
relation located next to body of water
type watercourse
['2016 Visegrad 4 Kerékpárverseny', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?l WHERE { resource:Budapest property:located_next_to_body_of_water ?l . ?l rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q873313
P57
Q502895
USER
Who directed The Red and the White ?
(Q873313,P57,c(Q502895))
action filter_type
action find
entity Q873313
relation P57
type Q502895
['Q873313', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q873313 property:P57 ?k . ?k rdf:type ontology:Q502895 }
The Red and the White
action filter_type
action find
entity The Red and the White
relation director
type common name
['The Red and the White', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:The_Red_and_the_White property:director ?k . ?k rdf:type ontology:common_name }
[]
common name
Q259240
SYSTEM
Miklós Jancsó
Q259240
(Q873313,P57,c(Q502895))
action filter_type
action find
entity Q873313
relation P57
type Q502895
[ANSWER] directed The Red and the White
['Q873313', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q873313 property:P57 ?k . ?k rdf:type ontology:Q502895 }
Miklós Jancsó
Miklós Jancsó directed The Red and the White
Miklós Jancsó
action filter_type
action find
entity The Red and the White
relation director
type common name
['The Red and the White', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:The_Red_and_the_White property:director ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q259240
P20
Q56061
USER
Where did that person die ?
(Q259240,P20,c(Q56061))
action filter_type
action find
entity Q259240
relation P20
type Q56061
['Q259240', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q259240 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Miklós Jancsó
action filter_type
action find
entity Miklós Jancsó
relation place of death
type administrative territorial entity
['Miklós Jancsó', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Miklós_Jancsó property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q259240,P20,c(Q56061))
action filter_type
action find
entity Q259240
relation P20
type Q56061
That person died in [ANSWER]
['Q259240', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q259240 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Budapest
That person died in Budapest
Budapest
action filter_type
action find
entity Miklós Jancsó
relation place of death
type administrative territorial entity
['Miklós Jancsó', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Miklós_Jancsó property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16887610 Q259240
P58
Q838948
USER
Which works of art are Miklós Jancsó or Ajayan Venugopalan a screenwriter of ?
OR((c(Q838948),P58,Q259240), (c(Q838948),P58,Q16887610))
action filter_type
action union
action find_reverse
entity Q259240
relation P58
action find_reverse
entity Q16887610
relation P58
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P58', 'Q259240'], [{'concept': 'Q838948'}, 'P58', 'Q16887610']]}
SELECT DISTINCT ?z WHERE { { { ?z property:P58 resource:Q259240 } UNION { ?z property:P58 resource:Q16887610 } } . ?z rdf:type ontology:Q838948 }
Ajayan Venugopalan Miklós Jancsó
action filter_type
action union
action find_reverse
entity Miklós Jancsó
relation screenwriter
action find_reverse
entity Ajayan Venugopalan
relation screenwriter
type work of art
{'OR': [[{'concept': 'work of art'}, 'screenwriter', 'Miklós Jancsó'], [{'concept': 'work of art'}, 'screenwriter', 'Ajayan Venugopalan']]}
SELECT DISTINCT ?z WHERE { { { ?z property:screenwriter resource:Miklós_Jancsó } UNION { ?z property:screenwriter resource:Ajayan_Venugopalan } } . ?z rdf:type ontology:work_of_art }
[]
work of art
Q4540701 Q371945 Q3202552 Q873313 Q6188097 Q15804655 Q531109 Q19891997
SYSTEM
Cantata, Red Psalm, Dawn, The Red and the White, Jesus Christ's Horoscope, The Tyrant's Heart, The Round-Up, Ivide
Q4540701 Q371945 Q3202552 Q873313 Q6188097 Q15804655 Q531109 Q19891997
OR((c(Q838948),P58,Q259240), (c(Q838948),P58,Q16887610))
action filter_type
action union
action find_reverse
entity Q259240
relation P58
action find_reverse
entity Q16887610
relation P58
type Q838948
[ANSWERS] are Miklós Jancsó or Ajayan Venugopalan a screenwriter of
{'OR': [[{'concept': 'Q838948'}, 'P58', 'Q259240'], [{'concept': 'Q838948'}, 'P58', 'Q16887610']]}
SELECT DISTINCT ?z WHERE { { { ?z property:P58 resource:Q259240 } UNION { ?z property:P58 resource:Q16887610 } } . ?z rdf:type ontology:Q838948 }
Cantata Red Psalm Dawn The Red and the White Jesus Christ's Horoscope The Tyrant's Heart The Round-Up Ivide
Cantata, Red Psalm, Dawn, The Red and the White, Jesus Christ's Horoscope, The Tyrant's Heart, The Round-Up and Ivide are Miklós Jancsó or Ajayan Venugopalan a screenwriter of
Cantata Red Psalm Dawn The Red and the White Jesus Christ's Horoscope The Tyrant's Heart The Round-Up Ivide
action filter_type
action union
action find_reverse
entity Miklós Jancsó
relation screenwriter
action find_reverse
entity Ajayan Venugopalan
relation screenwriter
type work of art
{'OR': [[{'concept': 'work of art'}, 'screenwriter', 'Miklós Jancsó'], [{'concept': 'work of art'}, 'screenwriter', 'Ajayan Venugopalan']]}
SELECT DISTINCT ?z WHERE { { { ?z property:screenwriter resource:Miklós_Jancsó } UNION { ?z property:screenwriter resource:Ajayan_Venugopalan } } . ?z rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7183848 Q1098562
P19 P740
Q56061
USER
Which administrative territories are the locations of formation of Ivan & The Parazol or are the places of birth of Philip Jenkinson ?
OR((Q1098562,P740,c(Q56061)), (Q7183848,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1098562
relation P740
action find
entity Q7183848
relation P19
type Q56061
{'OR': [['Q1098562', 'P740', {'concept': 'Q56061'}], ['Q7183848', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1098562 property:P740 ?p } UNION { resource:Q7183848 property:P19 ?p } } . ?p rdf:type ontology:Q56061 }
Philip Jenkinson Ivan & The Parazol
action filter_type
action union
action find
entity Ivan & The Parazol
relation location of formation
action find
entity Philip Jenkinson
relation place of birth
type administrative territorial entity
{'OR': [['Ivan & The Parazol', 'location of formation', {'concept': 'administrative territorial entity'}], ['Philip Jenkinson', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Ivan_&_The_Parazol property:location_of_formation ?p } UNION { resource:Philip_Jenkinson property:place_of_birth ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1022733 Q1781
SYSTEM
Sale, Budapest
Q1022733 Q1781
OR((Q1098562,P740,c(Q56061)), (Q7183848,P19,c(Q56061)))
action filter_type
action union
action find
entity Q1098562
relation P740
action find
entity Q7183848
relation P19
type Q56061
[ANSWERS] are the locations of formation of Ivan & The Parazol or are the places of birth of Philip Jenkinson
{'OR': [['Q1098562', 'P740', {'concept': 'Q56061'}], ['Q7183848', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1098562 property:P740 ?p } UNION { resource:Q7183848 property:P19 ?p } } . ?p rdf:type ontology:Q56061 }
Sale Budapest
Sale and Budapest are the locations of formation of Ivan & The Parazol or are the places of birth of Philip Jenkinson
Sale Budapest
action filter_type
action union
action find
entity Ivan & The Parazol
relation location of formation
action find
entity Philip Jenkinson
relation place of birth
type administrative territorial entity
{'OR': [['Ivan & The Parazol', 'location of formation', {'concept': 'administrative territorial entity'}], ['Philip Jenkinson', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Ivan_&_The_Parazol property:location_of_formation ?p } UNION { resource:Philip_Jenkinson property:place_of_birth ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]