Simple Question (Direct)
Simple Question
Q19668002
P19
Q56061
USER
Which administrative territory is the place of birth of Ignacio Neira Pedraja ?
(Q19668002,P19,c(Q56061))
action filter_type
action find
entity Q19668002
relation P19
type Q56061
['Q19668002', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q19668002 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Ignacio Neira Pedraja
action filter_type
action find
entity Ignacio Neira Pedraja
relation place of birth
type administrative territorial entity
['Ignacio Neira Pedraja', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Ignacio_Neira_Pedraja property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1442470
SYSTEM
Santoña
Q1442470
(Q19668002,P19,c(Q56061))
action filter_type
action find
entity Q19668002
relation P19
type Q56061
De [ANSWER] is the place of birth of Ignacio Neira Pedraja
['Q19668002', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q19668002 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Santoña
De Santoña is the place of birth of Ignacio Neira Pedraja
Santoña
action filter_type
action find
entity Ignacio Neira Pedraja
relation place of birth
type administrative territorial entity
['Ignacio Neira Pedraja', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Ignacio_Neira_Pedraja property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1442470
P47
Q1048835
USER
Which political territories are bordered by that administrative territory ?
(Q1442470,P47,c(Q1048835))
action filter_type
action find
entity Q1442470
relation P47
type Q1048835
['Q1442470', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1442470 property:P47 ?w . ?w rdf:type ontology:Q1048835 }
Santoña
action filter_type
action find
entity Santoña
relation shares border with
type political territorial entity
['Santoña', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Santoña property:shares_border_with ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1443853 Q1447802 Q641071
SYSTEM
Argoños, Noja, Escalante
Q1443853 Q1447802 Q641071
(Q1442470,P47,c(Q1048835))
action filter_type
action find
entity Q1442470
relation P47
type Q1048835
[ANSWERS] are bordered by that administrative territory
['Q1442470', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q1442470 property:P47 ?w . ?w rdf:type ontology:Q1048835 }
Argoños Noja Escalante
Argoños, Noja and Escalante are bordered by that administrative territory
Argoños Noja Escalante
action filter_type
action find
entity Santoña
relation shares border with
type political territorial entity
['Santoña', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Santoña property:shares_border_with ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q62717 Q1442470
P47
Q1048835
USER
Or Arahal?
OR((Q1442470,P47,c(Q1048835)), (Q62717,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1442470
relation P47
action find
entity Q62717
relation P47
type Q1048835
{'OR': [['Q1442470', 'P47', {'concept': 'Q1048835'}], ['Q62717', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:P47 ?l . VALUES ( ?z ) { ( resource:Q62717 ) ( resource:Q1442470 ) } } . ?l rdf:type ontology:Q1048835 }
Arahal Santoña
action filter_type
action union
action find
entity Santoña
relation shares border with
action find
entity Arahal
relation shares border with
type political territorial entity
{'OR': [['Santoña', 'shares border with', {'concept': 'political territorial entity'}], ['Arahal', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:shares_border_with ?l . VALUES ( ?z ) { ( resource:Arahal ) ( resource:Santoña ) } } . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1146804 Q1146813 Q1447802 Q1447700 Q1605609 Q494781 Q641071 Q609094 Q753825 Q1443853
SYSTEM
Los Molares, Paradas, Noja, El Coronil, Montellano, Alcalá de Guadaíra, Escalante, Morón de la Frontera, Utrera, Argoños
Q1146804 Q1146813 Q1447802 Q1447700 Q1605609 Q494781 Q641071 Q609094 Q753825 Q1443853
OR((Q1442470,P47,c(Q1048835)), (Q62717,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1442470
relation P47
action find
entity Q62717
relation P47
type Q1048835
[ANSWERS]
{'OR': [['Q1442470', 'P47', {'concept': 'Q1048835'}], ['Q62717', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:P47 ?l . VALUES ( ?z ) { ( resource:Q62717 ) ( resource:Q1442470 ) } } . ?l rdf:type ontology:Q1048835 }
Los Molares Paradas Noja El Coronil Montellano Alcalá de Guadaíra Escalante Morón de la Frontera Utrera Argoños
Los Molares Paradas Noja El Coronil Montellano Alcalá de Guadaíra Escalante Morón de la Frontera Utrera Argoños
action filter_type
action union
action find
entity Santoña
relation shares border with
action find
entity Arahal
relation shares border with
type political territorial entity
{'OR': [['Santoña', 'shares border with', {'concept': 'political territorial entity'}], ['Arahal', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?z property:shares_border_with ?l . VALUES ( ?z ) { ( resource:Arahal ) ( resource:Santoña ) } } . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have ambassadorial relations with atmost 7 political territories ?
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 7
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?t ) WHERE { ?a property:P530 ?w . ?a rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1048835 } GROUP BY ?a } . FILTER ( ?t <= 7 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 7
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?t ) WHERE { ?a property:diplomatic_relation ?w . ?a rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?a } . FILTER ( ?t <= 7 ) }
[]
political territorial entity political territorial entity
SYSTEM
12
Q1000 Q40 Q781 Q778 Q183 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 7
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?t ) WHERE { ?a property:P530 ?w . ?a rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1048835 } GROUP BY ?a } . FILTER ( ?t <= 7 ) }
Gabon Austria Antigua and Barbuda The Bahamas Germany Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
12
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 7
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?w ) AS ?t ) WHERE { ?a property:diplomatic_relation ?w . ?a rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?a } . FILTER ( ?t <= 7 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q29 Q609094
P47 P17
Q486972
USER
Which human settlements have an adjacent border with Morón de la Frontera and are located in Spain ?
AND((c(Q486972),P47,Q609094), (c(Q486972),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q609094
relation P47
action find_reverse
entity Q29
relation P17
type Q486972
{'AND': [[{'concept': 'Q486972'}, 'P47', 'Q609094'], [{'concept': 'Q486972'}, 'P17', 'Q29']]}
SELECT DISTINCT ?t WHERE { ?t property:P47 resource:Q609094 . ?t property:P17 resource:Q29 . ?t rdf:type ontology:Q486972 }
Spain Morón de la Frontera
action filter_type
action intersection
action find_reverse
entity Morón de la Frontera
relation shares border with
action find_reverse
entity Spain
relation country
type human settlement
{'AND': [[{'concept': 'human settlement'}, 'shares border with', 'Morón de la Frontera'], [{'concept': 'human settlement'}, 'country', 'Spain']]}
SELECT DISTINCT ?t WHERE { ?t property:shares_border_with resource:Morón_de_la_Frontera . ?t property:country resource:Spain . ?t rdf:type ontology:human_settlement }
[]
human settlement
Q20827574
SYSTEM
Pozo Amargo
Q20827574
AND((c(Q486972),P47,Q609094), (c(Q486972),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q609094
relation P47
action find_reverse
entity Q29
relation P17
type Q486972
[ANSWER] have an adjacent border with Morón de la Frontera and are located in Spain
{'AND': [[{'concept': 'Q486972'}, 'P47', 'Q609094'], [{'concept': 'Q486972'}, 'P17', 'Q29']]}
SELECT DISTINCT ?t WHERE { ?t property:P47 resource:Q609094 . ?t property:P17 resource:Q29 . ?t rdf:type ontology:Q486972 }
Pozo Amargo
Pozo Amargo have an adjacent border with Morón de la Frontera and are located in Spain
Pozo Amargo
action filter_type
action intersection
action find_reverse
entity Morón de la Frontera
relation shares border with
action find_reverse
entity Spain
relation country
type human settlement
{'AND': [[{'concept': 'human settlement'}, 'shares border with', 'Morón de la Frontera'], [{'concept': 'human settlement'}, 'country', 'Spain']]}
SELECT DISTINCT ?t WHERE { ?t property:shares_border_with resource:Morón_de_la_Frontera . ?t property:country resource:Spain . ?t rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q486972 Q515
USER
Which cities are sister town of approximately 1 human settlement ?
(c(Q515),P190,c(Q486972))
action approx
action find_tuple_counts
relation P190
type Q515
type Q486972
value 1
[{'concept': 'Q515'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?v ) WHERE { ?e property:P190 ?k . ?e rdf:type ontology:Q515 . ?k rdf:type ontology:Q486972 } GROUP BY ?e } . FILTER ( ?v = 1 ) }
action approx
action find_tuple_counts
relation sister city
type city
type human settlement
value 1
[{'concept': 'city'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?v ) WHERE { ?e property:sister_city ?k . ?e rdf:type ontology:city . ?k rdf:type ontology:human_settlement } GROUP BY ?e } . FILTER ( ?v = 1 ) }
[]
human settlement city
Q1773 Q1899 Q1794
SYSTEM
Riga, Kyiv, Frankfurt
Q3974 Q4024 Q43199 Q52607 Q20934 Q916679 Q329768 Q14424 Q2135 Q11462 Q3214 Q857202 Q57719 Q3069 Q1899 Q1794 Q503411 Q375097 Q2966 Q625154 Q179608 Q1010144 Q607625 Q214945 Q214956 Q319804 Q855513 Q104587 Q2973 Q270704 Q4346 Q316841 Q14819 Q193721 Q7003 Q987496 Q404429 Q784229 Q755681 Q2900 Q587746 Q3857 Q42664 Q1711 Q514796 Q3004 Q2978 Q188082 Q842996 Q3852 Q1773 Q3958 Q3955 Q875070 Q668318 Q189633 Q2079 Q42007 Q513417 Q2096 Q642031 Q58210 Q16506 Q68481 Q245126 Q789233 Q3046 Q246634 Q185684 Q7027 Q646850 Q2119 Q149108 Q149105 Q63855 Q637913 Q728438 Q855086 Q320798 Q4175 Q189769 Q2887 Q263757 Q1000056 Q854965 Q168648 Q3935 Q3750 Q933638 Q386661 Q158245 Q18575 Q117676 Q1533 Q3042 Q209988 Q954808 Q392429 Q1019371 Q2999
(c(Q515),P190,c(Q486972))
action approx
action find_tuple_counts
relation P190
type Q515
type Q486972
value 1
[ANSWERS] are sister town of approximately 1 human settlement
[{'concept': 'Q515'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?v ) WHERE { ?e property:P190 ?k . ?e rdf:type ontology:Q515 . ?k rdf:type ontology:Q486972 } GROUP BY ?e } . FILTER ( ?v = 1 ) }
Landshut Frankfurt (Oder) Omaha Mar del Plata Incheon Téglás Tata Nagykanizsa Winnipeg Surabaya Cottbus Sanuki Xuzhou Bottrop Kyiv Frankfurt Inuyama Tiszaújváros Heidelberg Komárom Nanning Hluboká nad Vltavou Tamási Pápa Znojmo Sanya Bük Kyjov Darmstadt Třebíč Waren (Müritz) Karlovo Freiberg Tábor Dijon Kralupy nad Vltavou Jiaozuo Szigethalom Várpalota Quito Siret Wilhelmshaven Huzhou Potsdam Baoji Ingolstadt Regensburg Český Krumlov Pécsvárad Worms Riga Neubrandenburg Weimar Dagupan Sárospatak Guilin Leipzig Szombathely Vsetín Edmonton Gárdony Jinhua České Budějovice Fuzhou Siófok Balassagyarmat Pforzheim Zábřeh Hefei Straubing Kiskőrös Mannheim Jablunkov Tanvald Roudnice nad Labem Tōgane Siklós Sajószentpéter Mohács Ibbenbüren Salgótarján Santiago Kadarkút Sušice Lenti Sopron Windhoek Gera Mezőkövesd Fujisawa Písek Tucson Viseu Caracas Offenbach am Main Gödöllő Kaplice Šternberk Studénka Würzburg
Riga, Kyiv and Frankfurt are sister town of approximately 1 human settlement
Riga Kyiv Frankfurt
action approx
action find_tuple_counts
relation sister city
type city
type human settlement
value 1
[{'concept': 'city'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?v ) WHERE { ?e property:sister_city ?k . ?e rdf:type ontology:city . ?k rdf:type ontology:human_settlement } GROUP BY ?e } . FILTER ( ?v = 1 ) }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P163
Q14660 Q515
USER
Which cities have their flag named greater number of flags than that city ?
(c(Q515),P163,c(Q14660))
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?z WHERE { ?z property:Q14660 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 }
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?z WHERE { ?z property:flag ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:flag }
[]
flag city
Comparative|More/Less|Single entity type|Clarification
Q1794
SYSTEM
Did you mean Frankfurt ?
(c(Q515),P163,c(Q14660))
[ANSWER]
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?z WHERE { ?z property:Q14660 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 }
Did you mean Frankfurt ?
Frankfurt
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?z WHERE { ?z property:flag ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:flag }
[]
Comparative Reasoning (All)
USER
No, I meant Riga. Could you tell me the answer for that?
(c(Q515),P163,c(Q14660))
Q1773
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
[]
Q1410 Q235 Q1486
SYSTEM
Gibraltar, Monaco, Buenos Aires
Q1410 Q235 Q1486
(c(Q515),P163,c(Q14660))
[ANSWERS] have their flag named greater number of flags than that city
[{'concept': 'Q515'}, 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?z WHERE { ?z property:Q14660 ?y . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q14660 }
Gibraltar Monaco Buenos Aires
Gibraltar, Monaco and Buenos Aires have their flag named greater number of flags than that city
Gibraltar Monaco Buenos Aires
[{'concept': 'city'}, 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?z WHERE { ?z property:flag ?y . ?z rdf:type ontology:city . ?y rdf:type ontology:flag }
[]