Simple Question (Direct)
Simple Question
Q1700018
P20
Q15617994
USER
Where did Kurt Kühme die ?
(Q1700018,P20,c(Q15617994))
action filter_type
action find
entity Q1700018
relation P20
type Q15617994
['Q1700018', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q1700018 property:P20 ?z . ?z rdf:type ontology:Q15617994 }
Kurt Kühme
action filter_type
action find
entity Kurt Kühme
relation place of death
type designation for an administrative territorial entity
['Kurt Kühme', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Kurt_Kühme property:place_of_death ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q567258
SYSTEM
Hallschlag
Q567258
(Q1700018,P20,c(Q15617994))
action filter_type
action find
entity Q1700018
relation P20
type Q15617994
Kurt Kühme died in [ANSWER]
['Q1700018', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q1700018 property:P20 ?z . ?z rdf:type ontology:Q15617994 }
Hallschlag
Kurt Kühme died in Hallschlag
Hallschlag
action filter_type
action find
entity Kurt Kühme
relation place of death
type designation for an administrative territorial entity
['Kurt Kühme', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Kurt_Kühme property:place_of_death ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1700018
P106
Q12737077
USER
What is the job of Kurt Kühme ?
(Q1700018,P106,c(Q12737077))
action filter_type
action find
entity Q1700018
relation P106
type Q12737077
['Q1700018', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1700018 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Kurt Kühme
action filter_type
action find
entity Kurt Kühme
relation occupation
type occupation
['Kurt Kühme', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Kurt_Kühme property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q1700018,P106,c(Q12737077))
action filter_type
action find
entity Q1700018
relation P106
type Q12737077
The job of Kurt Kühme is a [ANSWER]
['Q1700018', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q1700018 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
politician
The job of Kurt Kühme is a politician
politician
action filter_type
action find
entity Kurt Kühme
relation occupation
type occupation
['Kurt Kühme', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Kurt_Kühme property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1700018
P39
Q12737077
USER
Which occupation was a position for which Kurt Kühme was appointed ?
(Q1700018,P39,c(Q12737077))
action filter_type
action find
entity Q1700018
relation P39
type Q12737077
['Q1700018', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1700018 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Kurt Kühme
action filter_type
action find
entity Kurt Kühme
relation position held
type occupation
['Kurt Kühme', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Kurt_Kühme property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q17856046
SYSTEM
member of the Reichstag of Nazi Germany
Q17856046
(Q1700018,P39,c(Q12737077))
action filter_type
action find
entity Q1700018
relation P39
type Q12737077
A [ANSWER] was a position for which Kurt Kühme was appointed
['Q1700018', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1700018 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
member of the Reichstag of Nazi Germany
A member of the Reichstag of Nazi Germany was a position for which Kurt Kühme was appointed
member of the Reichstag of Nazi Germany
action filter_type
action find
entity Kurt Kühme
relation position held
type occupation
['Kurt Kühme', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Kurt_Kühme property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7341850
Q12737077
USER
And what about Robert Banks?
(Q7341850,P39,c(Q12737077))
action filter_type
action find
entity Q7341850
relation P39
type Q12737077
['Q7341850', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q7341850 property:P39 ?d . ?d rdf:type ontology:Q12737077 }
Robert Banks
action filter_type
action find
entity Robert Banks
relation position held
type occupation
['Robert Banks', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Robert_Banks property:position_held ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q16707842
SYSTEM
Member of Parliament in the United Kingdom
Q16707842
(Q7341850,P39,c(Q12737077))
action filter_type
action find
entity Q7341850
relation P39
type Q12737077
[ANSWER]
['Q7341850', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q7341850 property:P39 ?d . ?d rdf:type ontology:Q12737077 }
Member of Parliament in the United Kingdom
Member of Parliament in the United Kingdom
action filter_type
action find
entity Robert Banks
relation position held
type occupation
['Robert Banks', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Robert_Banks property:position_held ?d . ?d rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P194
Q11204 Q35749 Q15617994
USER
How many administrative territories have atmost 1 legislatures or parliaments as their representative body ?
(c(Q15617994),P194,c(Q11204)|c(Q35749))
action count
action atmost
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q35749
value 1
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?g WHERE { { ?g property:P194 ?k . ?g rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q11204 } UNION { ?g property:P194 ?k . ?g rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q35749 } } GROUP BY ?g } . FILTER ( ?r <= 1 ) }
action count
action atmost
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?g WHERE { { ?g property:legislative_body ?k . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:legislature } UNION { ?g property:legislative_body ?k . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:parliament } } GROUP BY ?g } . FILTER ( ?r <= 1 ) }
[]
legislature parliament designation for an administrative territorial entity
SYSTEM
141
Q805 Q804 Q801 Q800 Q1462 Q1250 Q419 Q668 Q2806757 Q414 Q142 Q55 Q1948 Q145 Q148 Q189 Q786 Q710 Q717 Q252320 Q187035 Q1460 Q3361 Q657 Q258 Q1979 Q45 Q159 Q43 Q41 Q155 Q792 Q4628 Q779011 Q794 Q889 Q884 Q958 Q12574 Q153529 Q1965 Q12761 Q242 Q244 Q1974 Q33 Q32 Q31 Q30 Q37 Q36 Q34 Q929 Q39 Q38 Q739 Q3685392 Q733 Q29999 Q854 Q153091 Q1447 Q104192 Q603676 Q1282 Q1284 Q3389 Q236 Q747074 Q72449 Q233 Q238 Q12661 Q20 Q1273 Q28 Q29 Q1279 Q1049 Q783 Q2009 Q2007 Q184 Q2003 Q1458 Q1904 Q228 Q227 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q347 Q17 Q1989 Q902 Q191 Q697 Q298 Q114 Q754 Q750 Q212 Q213 Q211 Q6465 Q214 Q215 Q218 Q219 Q1210 Q917 Q16110 Q736 Q34020 Q686 Q760 Q574 Q694594 Q79 Q77 Q1222 Q774 Q811 Q1016 Q27 Q1011 Q1243 Q1013 Q12620 Q12626 Q672 Q176 Q1951 Q1952 Q2023 Q869 Q1237
(c(Q15617994),P194,c(Q11204)|c(Q35749))
action count
action atmost
action union
action find_tuple_counts
relation P194
type Q15617994
type Q11204
action find_tuple_counts
relation P194
type Q15617994
type Q35749
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?g WHERE { { ?g property:P194 ?k . ?g rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q11204 } UNION { ?g property:P194 ?k . ?g rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q35749 } } GROUP BY ?g } . FILTER ( ?r <= 1 ) }
Yemen Panama Israel Costa Rica Sardinia Friuli–Venezia Giulia Peru India 105 Mile Post Indian Reserve No. 2 Argentina France Netherlands Manitoba United Kingdom People's Republic of China Iceland Dominican Republic Kiribati Venezuela Pleinfeld Principality of Albania Sicily Doubs Chad South Africa Prince Edward Island Portugal Russia Turkey Greece Brazil El Salvador Faroe Islands Principality of Montenegro Iran Afghanistan South Korea South Sudan Loiret Duchy of Milan New Brunswick Seine-Saint-Denis Belize Barbados British Columbia Finland Luxembourg Belgium United States of America Lithuania Poland Sweden Central African Republic Switzerland Italy Colombia Municipality of Monaco Paraguay Kingdom of the Netherlands Sri Lanka Duchy of Prussia Apulia Kleinmachnow District of Keewatin Lazio Abruzzo Finistère Montenegro comune of Italy Roccarainola Malta San Marino Nord Norway Tuscany Hungary Spain Marche Sudan Honduras Yukon Northwest Territories Belarus Newfoundland and Labrador Calabria Ontario Andorra Azerbaijan Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Liechtenstein Japan Saskatchewan Bangladesh Estonia Nauru Chile Kenya Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia department of France Slovakia Slovenia Romania Bulgaria Lombardy Bhutan region of Italy Ecuador Niue Vanuatu Saint Lucia East Timor Bremen-Verden Egypt Uruguay Aosta Valley Guatemala Nicaragua Libya Ireland Cape Verde Veneto Lesotho Mayenne Meurthe-et-Moselle Tuvalu Quebec Alberta Nova Scotia Nunavut Thailand Trentino-South Tyrol
141
action count
action atmost
action union
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type legislature
action find_tuple_counts
relation legislative body
type designation for an administrative territorial entity
type parliament
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'parliament'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?g WHERE { { ?g property:legislative_body ?k . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:legislature } UNION { ?g property:legislative_body ?k . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:parliament } } GROUP BY ?g } . FILTER ( ?r <= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1650608 Q1700018
P47 P27
Q1048835
USER
Which political territories are Kurt Kühme a civilian of or are adjacent to Cabezón de Pisuerga ?
OR((Q1700018,P27,c(Q1048835)), (Q1650608,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1700018
relation P27
action find
entity Q1650608
relation P47
type Q1048835
{'OR': [['Q1700018', 'P27', {'concept': 'Q1048835'}], ['Q1650608', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1700018 property:P27 ?i } UNION { resource:Q1650608 property:P47 ?i } } . ?i rdf:type ontology:Q1048835 }
Cabezón de Pisuerga Kurt Kühme
action filter_type
action union
action find
entity Kurt Kühme
relation country of citizenship
action find
entity Cabezón de Pisuerga
relation shares border with
type political territorial entity
{'OR': [['Kurt Kühme', 'country of citizenship', {'concept': 'political territorial entity'}], ['Cabezón de Pisuerga', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Kurt_Kühme property:country_of_citizenship ?i } UNION { resource:Cabezón_de_Pisuerga property:shares_border_with ?i } } . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1770811 Q2249269 Q183 Q302606 Q1769167 Q1766990 Q968763 Q1916474
SYSTEM
San Martín de Valvení, Corcos, Germany, Olmos de Esgueva, Cigales, Villarmentero de Esgueva, Santovenia de Pisuerga, Castronuevo de Esgueva
Q1770811 Q2249269 Q183 Q302606 Q1769167 Q1766990 Q968763 Q1916474
OR((Q1700018,P27,c(Q1048835)), (Q1650608,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1700018
relation P27
action find
entity Q1650608
relation P47
type Q1048835
[ANSWERS] are Kurt Kühme a civilian of or are adjacent to Cabezón de Pisuerga
{'OR': [['Q1700018', 'P27', {'concept': 'Q1048835'}], ['Q1650608', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1700018 property:P27 ?i } UNION { resource:Q1650608 property:P47 ?i } } . ?i rdf:type ontology:Q1048835 }
San Martín de Valvení Corcos Germany Olmos de Esgueva Cigales Villarmentero de Esgueva Santovenia de Pisuerga Castronuevo de Esgueva
San Martín de Valvení, Corcos, Germany, Olmos de Esgueva, Cigales, Villarmentero de Esgueva, Santovenia de Pisuerga and Castronuevo de Esgueva are Kurt Kühme a civilian of or are adjacent to Cabezón de Pisuerga
San Martín de Valvení Corcos Germany Olmos de Esgueva Cigales Villarmentero de Esgueva Santovenia de Pisuerga Castronuevo de Esgueva
action filter_type
action union
action find
entity Kurt Kühme
relation country of citizenship
action find
entity Cabezón de Pisuerga
relation shares border with
type political territorial entity
{'OR': [['Kurt Kühme', 'country of citizenship', {'concept': 'political territorial entity'}], ['Cabezón de Pisuerga', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Kurt_Kühme property:country_of_citizenship ?i } UNION { resource:Cabezón_de_Pisuerga property:shares_border_with ?i } } . ?i rdf:type ontology:political_territorial_entity }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P1427
Q1048835 Q31629 Q2912397
USER
Which political territories are the starting points of approximately the same number of types of sport and single-day races as that political territory ?
(c(Q31629)|c(Q2912397),P1427,c(Q1048835))
[[{'concept': 'Q31629'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q2912397 }
[[{'concept': 'type of sport'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:single-day_race }
[]
political territorial entity type of sport single-day race
Comparative|More/Less|Mult. entity type|Clarification
Q183
SYSTEM
Did you mean Germany ?
(c(Q31629)|c(Q2912397),P1427,c(Q1048835))
[ANSWER]
[[{'concept': 'Q31629'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q2912397 }
Did you mean Germany ?
Germany
[[{'concept': 'type of sport'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:single-day_race }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q31629)|c(Q2912397),P1427,c(Q1048835))
[[{'concept': 'Q31629'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
[[{'concept': 'type of sport'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
[]
Q183 Q639412 Q55480
SYSTEM
Germany, Tarazona, Colmenar Viejo
Q1556707 Q55480 Q937763 Q183 Q301437 Q2264671 Q1628379 Q49661 Q536682 Q1765676 Q1442183 Q1766072 Q642046 Q1625868 Q956524 Q488555 Q1375842 Q739495 Q832991 Q474080 Q499184 Q1629539 Q1621191 Q668016 Q490638 Q913277 Q77433 Q601112 Q1374736 Q743741 Q484552 Q564773 Q639412 Q825883 Q1771143 Q987453
(c(Q31629)|c(Q2912397),P1427,c(Q1048835))
[ANSWERS] are the starting points of approximately the same number of types of sport and single-day races as that political territory
[[{'concept': 'Q31629'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q2912397 }
Vila Nova de Cacela Colmenar Viejo Graus Germany Priego de Córdoba El Palomar Mairena del Alcor Mauren Belorado Torredelcampo Sober Santo Domingo de Silos Calahorra Alcañices Maella Baeza Ortigueira Vilanova de Arousa Sóller Amorebieta-Etxano Roquetas de Mar Salvaterra de Miño A Estrada Iurreta Almendralejo Mazarrón Leganés Pollença Lalín Felanitx Algeciras Alhendín Tarazona Valls Carboneras de Guadazaón San Javier
Germany, Tarazona and Colmenar Viejo are the starting points of approximately the same number of types of sport and single-day races as that political territory
Germany Tarazona Colmenar Viejo
[[{'concept': 'type of sport'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:single-day_race }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q183 Q639412 Q55480
P6
Q502895
USER
What people are Germany, Tarazona and Colmenar Viejo the head of goverment of ?
(Q183,P6,c(Q502895)) (Q639412,P6,c(Q502895)) (Q55480,P6,c(Q502895))
action union
action filter_type
action find
entity Q183
relation P6
type Q502895
action filter_type
action find
entity Q639412
relation P6
type Q502895
action filter_type
action find
entity Q55480
relation P6
type Q502895
['Q183', 'P6', {'concept': 'Q502895'}] ['Q639412', 'P6', {'concept': 'Q502895'}] ['Q55480', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { resource:Q639412 property:P6 ?p . ?p rdf:type ontology:Q502895 } UNION { resource:Q183 property:P6 ?p . ?p rdf:type ontology:Q502895 } }
Germany Tarazona Colmenar Viejo
action union
action filter_type
action find
entity Germany
relation head of government
type common name
action filter_type
action find
entity Tarazona
relation head of government
type common name
action filter_type
action find
entity Colmenar Viejo
relation head of government
type common name
['Germany', 'head of government', {'concept': 'common name'}] ['Tarazona', 'head of government', {'concept': 'common name'}] ['Colmenar Viejo', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { resource:Tarazona property:head_of_government ?p . ?p rdf:type ontology:common_name } UNION { resource:Germany property:head_of_government ?p . ?p rdf:type ontology:common_name } }
[]
common name
Q2492 Q2514 Q567
SYSTEM
Konrad Adenauer, Willy Brandt, Angela Merkel
Q2492 Q2518 Q2530 Q2496 Q2514 Q2516 Q2571 Q2512 Q567 Q5983896 Q14088614
(Q183,P6,c(Q502895)) (Q639412,P6,c(Q502895)) (Q55480,P6,c(Q502895))
action union
action filter_type
action find
entity Q183
relation P6
type Q502895
action filter_type
action find
entity Q639412
relation P6
type Q502895
action filter_type
action find
entity Q55480
relation P6
type Q502895
[ANSWERS] are Germany, Tarazona and Colmenar Viejo the head of goverment of
['Q183', 'P6', {'concept': 'Q502895'}] ['Q639412', 'P6', {'concept': 'Q502895'}] ['Q55480', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { resource:Q639412 property:P6 ?p . ?p rdf:type ontology:Q502895 } UNION { resource:Q183 property:P6 ?p . ?p rdf:type ontology:Q502895 } }
Konrad Adenauer Helmut Kohl Gerhard Schröder Ludwig Erhard Willy Brandt Helmut Schmidt Walter Scheel Kurt Georg Kiesinger Angela Merkel Luis María Beamonte Miguel Angel Santamaria Novoa
Konrad Adenauer, Willy Brandt and Angela Merkel are Germany, Tarazona and Colmenar Viejo the head of goverment of
Konrad Adenauer Willy Brandt Angela Merkel
action union
action filter_type
action find
entity Germany
relation head of government
type common name
action filter_type
action find
entity Tarazona
relation head of government
type common name
action filter_type
action find
entity Colmenar Viejo
relation head of government
type common name
['Germany', 'head of government', {'concept': 'common name'}] ['Tarazona', 'head of government', {'concept': 'common name'}] ['Colmenar Viejo', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { resource:Tarazona property:head_of_government ?p . ?p rdf:type ontology:common_name } UNION { resource:Germany property:head_of_government ?p . ?p rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q55480
P1427
Q13406554
USER
Which sport competition originates at Colmenar Viejo ?
(c(Q13406554),P1427,Q55480)
action filter_type
action find_reverse
entity Q55480
relation P1427
type Q13406554
[{'concept': 'Q13406554'}, 'P1427', 'Q55480']
SELECT DISTINCT ?g WHERE { ?g property:P1427 resource:Q55480 . ?g rdf:type ontology:Q13406554 }
Colmenar Viejo
action filter_type
action find_reverse
entity Colmenar Viejo
relation start point
type sport competition
[{'concept': 'sport competition'}, 'start point', 'Colmenar Viejo']
SELECT DISTINCT ?g WHERE { ?g property:start_point resource:Colmenar_Viejo . ?g rdf:type ontology:sport_competition }
[]
sport competition
Q19946152
SYSTEM
2015 Vuelta a la Comunidad de Madrid
Q19946152
(c(Q13406554),P1427,Q55480)
action filter_type
action find_reverse
entity Q55480
relation P1427
type Q13406554
The [ANSWER] originates at Colmenar Viejo
[{'concept': 'Q13406554'}, 'P1427', 'Q55480']
SELECT DISTINCT ?g WHERE { ?g property:P1427 resource:Q55480 . ?g rdf:type ontology:Q13406554 }
2015 Vuelta a la Comunidad de Madrid
The 2015 Vuelta a la Comunidad de Madrid originates at Colmenar Viejo
2015 Vuelta a la Comunidad de Madrid
action filter_type
action find_reverse
entity Colmenar Viejo
relation start point
type sport competition
[{'concept': 'sport competition'}, 'start point', 'Colmenar Viejo']
SELECT DISTINCT ?g WHERE { ?g property:start_point resource:Colmenar_Viejo . ?g rdf:type ontology:sport_competition }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q55480
P17
Q15617994
USER
Which administrative territory is that political territory present in ?
(Q19946152,P17,c(Q15617994))
action filter_type
action find
entity Q55480
relation P17
type Q15617994
['Q19946152', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q55480 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Colmenar Viejo
action filter_type
action find
entity Colmenar Viejo
relation country
type designation for an administrative territorial entity
['2015 Vuelta a la Comunidad de Madrid', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Colmenar_Viejo property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q19946152,P17,c(Q15617994))
action filter_type
action find
entity Q55480
relation P17
type Q15617994
That political territory is in [ANSWER]
['Q19946152', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q55480 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Spain
That political territory is in Spain
Spain
action filter_type
action find
entity Colmenar Viejo
relation country
type designation for an administrative territorial entity
['2015 Vuelta a la Comunidad de Madrid', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Colmenar_Viejo property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q29 Q4326753 Q4425452
P530
Q1048835
USER
Does that administrative territory have diplomatic relations with Novyi Posolok and Snihurivka ?
(Q29,P530,Q4326753) (Q29,P530,Q4425452)
action is_in
entity Q29
action intersection
action find_reverse
entity Q4326753
relation P530
action find_reverse
entity Q4425452
relation P530
['Q29', 'P530', 'Q4326753'] ['Q29', 'P530', 'Q4425452']
ASK WHERE { resource:Q29 property:P530 resource:Q4326753 . resource:Q29 property:P530 resource:Q4425452 }
Spain Novyi Posolok Snihurivka
action is_in
entity Spain
action intersection
action find_reverse
entity Novyi Posolok
relation diplomatic relation
action find_reverse
entity Snihurivka
relation diplomatic relation
['Spain', 'diplomatic relation', 'Novyi Posolok'] ['Spain', 'diplomatic relation', 'Snihurivka']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Novyi_Posolok . resource:Spain property:diplomatic_relation resource:Snihurivka }
[]
political territorial entity
SYSTEM
NO
(Q29,P530,Q4326753) (Q29,P530,Q4425452)
action is_in
entity Q29
action intersection
action find_reverse
entity Q4326753
relation P530
action find_reverse
entity Q4425452
relation P530
[ANSWER]
['Q29', 'P530', 'Q4326753'] ['Q29', 'P530', 'Q4425452']
ASK WHERE { resource:Q29 property:P530 resource:Q4326753 . resource:Q29 property:P530 resource:Q4425452 }
No
action is_in
entity Spain
action intersection
action find_reverse
entity Novyi Posolok
relation diplomatic relation
action find_reverse
entity Snihurivka
relation diplomatic relation
['Spain', 'diplomatic relation', 'Novyi Posolok'] ['Spain', 'diplomatic relation', 'Snihurivka']
ASK WHERE { resource:Spain property:diplomatic_relation resource:Novyi_Posolok . resource:Spain property:diplomatic_relation resource:Snihurivka }
[]