Simple Question (Direct)
Simple Question
Q16224262
P21
Q290
USER
Which sex does Jennifer Thompson belong to ?
(Q16224262,P21,c(Q290))
action filter_type
action find
entity Q16224262
relation P21
type Q290
['Q16224262', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q16224262 property:P21 ?q . ?q rdf:type ontology:Q290 }
Jennifer Thompson
action filter_type
action find
entity Jennifer Thompson
relation gender
type sex
['Jennifer Thompson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Jennifer_Thompson property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q16224262,P21,c(Q290))
action filter_type
action find
entity Q16224262
relation P21
type Q290
Jennifer Thompson belongs to [ANSWER]
['Q16224262', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q16224262 property:P21 ?q . ?q rdf:type ontology:Q290 }
female
Jennifer Thompson belongs to female
female
action filter_type
action find
entity Jennifer Thompson
relation gender
type sex
['Jennifer Thompson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Jennifer_Thompson property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16224262
P27
Q1048835
USER
Which political territory is Jennifer Thompson an inhabitant of ?
(Q16224262,P27,c(Q1048835))
action filter_type
action find
entity Q16224262
relation P27
type Q1048835
['Q16224262', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q16224262 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Jennifer Thompson
action filter_type
action find
entity Jennifer Thompson
relation country of citizenship
type political territorial entity
['Jennifer Thompson', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jennifer_Thompson property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664
SYSTEM
New Zealand
Q664
(Q16224262,P27,c(Q1048835))
action filter_type
action find
entity Q16224262
relation P27
type Q1048835
[ANSWER] is Jennifer Thompson an inhabitant of
['Q16224262', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { resource:Q16224262 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
New Zealand
New Zealand is Jennifer Thompson an inhabitant of
New Zealand
action filter_type
action find
entity Jennifer Thompson
relation country of citizenship
type political territorial entity
['Jennifer Thompson', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jennifer_Thompson property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16229105
Q1048835
USER
And also tell me about Nigel Iggo?
(Q16229105,P27,c(Q1048835))
action filter_type
action find
entity Q16229105
relation P27
type Q1048835
['Q16229105', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q16229105 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Nigel Iggo
action filter_type
action find
entity Nigel Iggo
relation country of citizenship
type political territorial entity
['Nigel Iggo', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Nigel_Iggo property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664
SYSTEM
New Zealand
Q664
(Q16229105,P27,c(Q1048835))
action filter_type
action find
entity Q16229105
relation P27
type Q1048835
[ANSWER]
['Q16229105', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q16229105 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
New Zealand
New Zealand
action filter_type
action find
entity Nigel Iggo
relation country of citizenship
type political territorial entity
['Nigel Iggo', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Nigel_Iggo property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q230
P530
Q1048835 Q15617994
USER
Which administrative territories are known to have diplomatic connections with less number of political territories than Georgia ?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q230
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?i ) WHERE { ?n rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 . ?n property:P530 ?s } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { resource:Q230 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?i < ?j ) }
Georgia
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?i ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation ?s } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { resource:Georgia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i < ?j ) }
[]
political territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q230
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with less number of political territories than Georgia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?i ) WHERE { ?n rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 . ?n property:P530 ?s } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { resource:Q230 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?i < ?j ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Italy, Brazil and United States of America are known to have diplomatic connections with less number of political territories than Georgia
Italy Brazil United States of America
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?i ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation ?s } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) WHERE { resource:Georgia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i < ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q28
P530
Q1048835 Q15617994
USER
And how about Hungary?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q28
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?i ) WHERE { ?h property:P530 ?r . ?h rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Q28 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?i < ?d ) }
Hungary
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Hungary
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?i ) WHERE { ?h property:diplomatic_relation ?r . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Hungary property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i < ?d ) }
[]
political territorial entity designation for an administrative territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q399 Q398 Q790 Q236 Q842 Q858
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q28
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?i ) WHERE { ?h property:P530 ?r . ?h rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Q28 property:P530 ?o . ?o rdf:type ontology:Q15617994 } } . FILTER ( ?i < ?d ) }
Yemen Armenia Bahrain Haiti Montenegro Oman Syria
Yemen Syria Oman
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Hungary
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?i ) WHERE { ?h property:diplomatic_relation ?r . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { resource:Hungary property:diplomatic_relation ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?i < ?d ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P127
Q1048835 Q1076486 Q811430
USER
Which political territories own max number of sports venues and constructions ?
(c(Q1076486)|c(Q811430),P127,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q1076486
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
[[{'concept': 'Q1076486'}, {'concept': 'Q811430'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?l WHERE { { ?l rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1076486 . ?k property:P127 ?l } UNION { ?l rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q811430 . ?k property:P127 ?l } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?i WHERE { { ?m property:P127 ?i . ?m rdf:type ontology:Q1076486 . ?i rdf:type ontology:Q1048835 } UNION { ?m property:P127 ?i . ?i rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q811430 } } GROUP BY ?i } . FILTER ( ?u = ?d ) }
action argmax
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type sports venue
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
[[{'concept': 'sports venue'}, {'concept': 'construction'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?l WHERE { { ?l rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:sports_venue . ?k property:owned_by ?l } UNION { ?l rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:construction . ?k property:owned_by ?l } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?i WHERE { { ?m property:owned_by ?i . ?m rdf:type ontology:sports_venue . ?i rdf:type ontology:political_territorial_entity } UNION { ?m property:owned_by ?i . ?i rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:construction } } GROUP BY ?i } . FILTER ( ?u = ?d ) }
[]
political territorial entity sports venue construction
Q5756
SYSTEM
Community of Madrid
Q5756
(c(Q1076486)|c(Q811430),P127,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q1076486
action find_reverse_tuple_counts
relation P127
type Q1048835
type Q811430
[ANSWER] own max number of sports venues and constructions
[[{'concept': 'Q1076486'}, {'concept': 'Q811430'}], 'P127', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?l WHERE { { ?l rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1076486 . ?k property:P127 ?l } UNION { ?l rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q811430 . ?k property:P127 ?l } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?i WHERE { { ?m property:P127 ?i . ?m rdf:type ontology:Q1076486 . ?i rdf:type ontology:Q1048835 } UNION { ?m property:P127 ?i . ?i rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q811430 } } GROUP BY ?i } . FILTER ( ?u = ?d ) }
Community of Madrid
Community of Madrid own max number of sports venues and constructions
Community of Madrid
action argmax
action union
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type sports venue
action find_reverse_tuple_counts
relation owned by
type political territorial entity
type construction
[[{'concept': 'sports venue'}, {'concept': 'construction'}], 'owned by', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?l WHERE { { ?l rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:sports_venue . ?k property:owned_by ?l } UNION { ?l rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:construction . ?k property:owned_by ?l } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?i WHERE { { ?m property:owned_by ?i . ?m rdf:type ontology:sports_venue . ?i rdf:type ontology:political_territorial_entity } UNION { ?m property:owned_by ?i . ?i rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:construction } } GROUP BY ?i } . FILTER ( ?u = ?d ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5756
P1382
Q13220204
USER
Which administrative country subdivision overlaps with that political territory ?
(c(Q13220204),P1382,Q5756)
action filter_type
action find_reverse
entity Q5756
relation P1382
type Q13220204
[{'concept': 'Q13220204'}, 'P1382', 'Q5756']
SELECT DISTINCT ?t WHERE { ?t property:P1382 resource:Q5756 . ?t rdf:type ontology:Q13220204 }
Community of Madrid
action filter_type
action find_reverse
entity Community of Madrid
relation coincident with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'coincident with', 'Community of Madrid']
SELECT DISTINCT ?t WHERE { ?t property:coincident_with resource:Community_of_Madrid . ?t rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q24069437
SYSTEM
Madrid Province
Q24069437
(c(Q13220204),P1382,Q5756)
action filter_type
action find_reverse
entity Q5756
relation P1382
type Q13220204
[ANSWER] overlaps with that political territory
[{'concept': 'Q13220204'}, 'P1382', 'Q5756']
SELECT DISTINCT ?t WHERE { ?t property:P1382 resource:Q5756 . ?t rdf:type ontology:Q13220204 }
Madrid Province
Madrid Province overlaps with that political territory
Madrid Province
action filter_type
action find_reverse
entity Community of Madrid
relation coincident with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'coincident with', 'Community of Madrid']
SELECT DISTINCT ?t WHERE { ?t property:coincident_with resource:Community_of_Madrid . ?t rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5756
P47
Q1048835
USER
Which political territories share border with Community of Madrid ?
(c(Q1048835),P47,Q5756)
action filter_type
action find
entity Q5756
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q5756']
SELECT DISTINCT ?z WHERE { resource:Q5756 property:P47 ?z . ?z rdf:type ontology:Q1048835 }
Community of Madrid
action filter_type
action find
entity Community of Madrid
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Community of Madrid']
SELECT DISTINCT ?z WHERE { resource:Community_of_Madrid property:shares_border_with ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q5739 Q5748
SYSTEM
Castile and León, Castile-La Mancha
Q5739 Q5748
(c(Q1048835),P47,Q5756)
action filter_type
action find
entity Q5756
relation P47
type Q1048835
[ANSWERS] share border with Community of Madrid
[{'concept': 'Q1048835'}, 'P47', 'Q5756']
SELECT DISTINCT ?z WHERE { resource:Q5756 property:P47 ?z . ?z rdf:type ontology:Q1048835 }
Castile and León Castile-La Mancha
Castile and León and Castile-La Mancha share border with Community of Madrid
Castile and León Castile-La Mancha
action filter_type
action find
entity Community of Madrid
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Community of Madrid']
SELECT DISTINCT ?z WHERE { resource:Community_of_Madrid property:shares_border_with ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5748
P6
Q502895
USER
Which person is the head of government of that political territory ?
(Q5748,P6,c(Q502895))
action filter_type
action find
entity Q5748
relation P6
type Q502895
['Q5748', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q5748 property:P6 ?q . ?q rdf:type ontology:Q502895 }
Castile-La Mancha
action filter_type
action find
entity Castile-La Mancha
relation head of government
type common name
['Castile-La Mancha', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Castile-La_Mancha property:head_of_government ?q . ?q rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q5748
SYSTEM
Did you mean Castile-La Mancha ?
Q5739 Q5748
(Q5739,P6,c(Q502895)) (Q5748,P6,c(Q502895))
[ANSWER]
['Q5739', 'P6', {'concept': 'Q502895'}] ['Q5748', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q5748 property:P6 ?q . ?q rdf:type ontology:Q502895 }
Castile and León Castile-La Mancha
Did you mean Castile-La Mancha ?
Castile-La Mancha
['Castile and León', 'head of government', {'concept': 'common name'}] ['Castile-La Mancha', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Castile-La_Mancha property:head_of_government ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q5748,P6,c(Q502895))
['Q5748', 'P6', {'concept': 'Q502895'}]
['Castile-La Mancha', 'head of government', {'concept': 'common name'}]
[]
Q271658
SYSTEM
María Dolores de Cospedal
Q271658
(Q5748,P6,c(Q502895))
action filter_type
action find
entity Q5748
relation P6
type Q502895
[ANSWER] is the head of government of that political territory
['Q5748', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q5748 property:P6 ?q . ?q rdf:type ontology:Q502895 }
María Dolores de Cospedal
María Dolores de Cospedal is the head of government of that political territory
María Dolores de Cospedal
action filter_type
action find
entity Castile-La Mancha
relation head of government
type common name
['Castile-La Mancha', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Castile-La_Mancha property:head_of_government ?q . ?q rdf:type ontology:common_name }
[]