Simple Question (Direct)
Simple Question
Q845711
P47
Q20667921
USER
Which french administrative divisions are bordered by Cantaron ?
(Q845711,P47,c(Q20667921))
action filter_type
action find
entity Q845711
relation P47
type Q20667921
['Q845711', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?s WHERE { resource:Q845711 property:P47 ?s . ?s rdf:type ontology:Q20667921 }
Cantaron
action filter_type
action find
entity Cantaron
relation shares border with
type type of french administrative division
['Cantaron', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?s WHERE { resource:Cantaron property:shares_border_with ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1018274 Q775404 Q1058441
SYSTEM
Tourrette-Levens, Blausasc, Contes
Q1058441 Q1018274 Q867249 Q1089758 Q383475 Q775404
(Q845711,P47,c(Q20667921))
action filter_type
action find
entity Q845711
relation P47
type Q20667921
[ANSWERS] are bordered by Cantaron
['Q845711', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?s WHERE { resource:Q845711 property:P47 ?s . ?s rdf:type ontology:Q20667921 }
Contes Tourrette-Levens Châteauneuf-Villevieille Drap La Trinité Blausasc
Tourrette-Levens, Blausasc and Contes are bordered by Cantaron
Tourrette-Levens Blausasc Contes
action filter_type
action find
entity Cantaron
relation shares border with
type type of french administrative division
['Cantaron', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?s WHERE { resource:Cantaron property:shares_border_with ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1018274
P17
Q15617994
USER
Which administrative territory is that french administrative division a part of ?
(Q1018274,P17,c(Q15617994))
action filter_type
action find
entity Q1018274
relation P17
type Q15617994
['Q1018274', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q1018274 property:P17 ?f }
Tourrette-Levens
action filter_type
action find
entity Tourrette-Levens
relation country
type designation for an administrative territorial entity
['Tourrette-Levens', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Tourrette-Levens property:country ?f }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1018274
SYSTEM
Did you mean Tourrette-Levens ?
Q1018274 Q775404 Q1058441
(Q1018274,P17,c(Q15617994)) (Q775404,P17,c(Q15617994)) (Q1058441,P17,c(Q15617994))
[ANSWER]
['Q1018274', 'P17', {'concept': 'Q15617994'}] ['Q775404', 'P17', {'concept': 'Q15617994'}] ['Q1058441', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q1018274 property:P17 ?f }
Tourrette-Levens Blausasc Contes
Did you mean Tourrette-Levens ?
Tourrette-Levens
['Tourrette-Levens', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Blausasc', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Contes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Tourrette-Levens property:country ?f }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1018274,P17,c(Q15617994))
['Q1018274', 'P17', {'concept': 'Q15617994'}]
['Tourrette-Levens', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q142
SYSTEM
France
Q142
(Q1018274,P17,c(Q15617994))
action filter_type
action find
entity Q1018274
relation P17
type Q15617994
[ANSWER] is that french administrative division a part of
['Q1018274', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q1018274 property:P17 ?f }
France
France is that french administrative division a part of
France
action filter_type
action find
entity Tourrette-Levens
relation country
type designation for an administrative territorial entity
['Tourrette-Levens', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Tourrette-Levens property:country ?f }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P840
Q15617994 Q838948 Q2342494
USER
Which administrative territories are min number of works of art or collectables set in ?
(c(Q838948)|c(Q2342494),P840,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?z = ?h ) . { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?z ) WHERE { { ?a rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q838948 . ?l property:P840 ?a } UNION { ?l property:P840 ?a . ?a rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q2342494 } } GROUP BY ?a } . { SELECT DISTINCT ( MIN ( ?g ) AS ?h ) { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:P840 ?q . ?q rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q838948 } UNION { ?u property:P840 ?q . ?q rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q2342494 } } GROUP BY ?q } } }
action argmin
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?z = ?h ) . { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?z ) WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:work_of_art . ?l property:narrative_location ?a } UNION { ?l property:narrative_location ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:collectable } } GROUP BY ?a } . { SELECT DISTINCT ( MIN ( ?g ) AS ?h ) { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:narrative_location ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:work_of_art } UNION { ?u property:narrative_location ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:collectable } } GROUP BY ?q } } }
[]
designation for an administrative territorial entity work of art collectable
Q32 Q1011 Q948
SYSTEM
Luxembourg, Cape Verde, Tunisia
Q3278 Q18021 Q1460 Q403 Q165040 Q12515 Q32 Q928 Q58477 Q769680 Q12538 Q233 Q1860611 Q1029 Q225 Q163966 Q12700 Q3207 Q159689 Q114 Q833 Q948 Q817 Q1016 Q1011 Q12545 Q53216
(c(Q838948)|c(Q2342494),P840,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q2342494
Min number of works of art or collectables are set in [ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?z = ?h ) . { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?z ) WHERE { { ?a rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q838948 . ?l property:P840 ?a } UNION { ?l property:P840 ?a . ?a rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q2342494 } } GROUP BY ?a } . { SELECT DISTINCT ( MIN ( ?g ) AS ?h ) { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:P840 ?q . ?q rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q838948 } UNION { ?u property:P840 ?q . ?q rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q2342494 } } GROUP BY ?q } } }
Charente-Maritime Biella Sicily Serbia Duchy of Parma Gard Luxembourg Philippines Capua Bornholm Haute-Garonne Malta Viby Mozambique Bosnia and Herzegovina Mitte Hautes-Pyrénées Aude Bomarzo Kenya Malaysia Tunisia Kuwait Libya Cape Verde Hérault Aquileia
Min number of works of art or collectables are set in Luxembourg, Cape Verde and Tunisia
Luxembourg Cape Verde Tunisia
action argmin
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?z = ?h ) . { SELECT DISTINCT ?a ( COUNT ( ?l ) AS ?z ) WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:work_of_art . ?l property:narrative_location ?a } UNION { ?l property:narrative_location ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:collectable } } GROUP BY ?a } . { SELECT DISTINCT ( MIN ( ?g ) AS ?h ) { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?g ) WHERE { { ?u property:narrative_location ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:work_of_art } UNION { ?u property:narrative_location ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:collectable } } GROUP BY ?q } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q32 Q1011 Q948
P530
Q15617994
USER
Who holds diplomatic relationship with Luxembourg, Cape Verde and Tunisia ?
(Q32,P530,c(Q15617994)) (Q1011,P530,c(Q15617994)) (Q948,P530,c(Q15617994))
action union
action filter_type
action find
entity Q32
relation P530
type Q15617994
action filter_type
action find
entity Q1011
relation P530
type Q15617994
action filter_type
action find
entity Q948
relation P530
type Q15617994
['Q32', 'P530', {'concept': 'Q15617994'}] ['Q1011', 'P530', {'concept': 'Q15617994'}] ['Q948', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?t ) { ( resource:Q32 ) ( resource:Q1011 ) } . ?t property:P530 ?m }
Luxembourg Cape Verde Tunisia
action union
action filter_type
action find
entity Luxembourg
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Cape Verde
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Tunisia
relation diplomatic relation
type designation for an administrative territorial entity
['Luxembourg', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Cape Verde', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Tunisia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?t ) { ( resource:Luxembourg ) ( resource:Cape_Verde ) } . ?t property:diplomatic_relation ?m }
[]
designation for an administrative territorial entity
Q38 Q38 Q155
SYSTEM
Brazil for 3rd, Italy for 1st, 2nd
Q142 Q31 Q38 Q142 Q45 Q159 Q155 Q148 Q241 Q30 Q1041 Q916 Q142 Q159 Q38 Q30
(Q32,P530,c(Q15617994)) (Q1011,P530,c(Q15617994)) (Q948,P530,c(Q15617994))
action union
action filter_type
action find
entity Q32
relation P530
type Q15617994
action filter_type
action find
entity Q1011
relation P530
type Q15617994
action filter_type
action find
entity Q948
relation P530
type Q15617994
[ANSWERS]
['Q32', 'P530', {'concept': 'Q15617994'}] ['Q1011', 'P530', {'concept': 'Q15617994'}] ['Q948', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?t ) { ( resource:Q32 ) ( resource:Q1011 ) } . ?t property:P530 ?m }
France Belgium Italy France Portugal Russia Brazil People's Republic of China Cuba United States of America Senegal Angola France Russia Italy United States of America
Italy, Italy and Brazil hold diplomatic relationship with Luxembourg, Cape Verde and Tunisia
Italy Italy Brazil
action union
action filter_type
action find
entity Luxembourg
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Cape Verde
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Tunisia
relation diplomatic relation
type designation for an administrative territorial entity
['Luxembourg', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Cape Verde', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Tunisia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { VALUES ( ?t ) { ( resource:Luxembourg ) ( resource:Cape_Verde ) } . ?t property:diplomatic_relation ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q32
P122
Q1307214
USER
What best describes the form of government of Luxembourg ?
(Q32,P122,c(Q1307214))
action filter_type
action find
entity Q32
relation P122
type Q1307214
['Q32', 'P122', {'concept': 'Q1307214'}]
SELECT DISTINCT ?c WHERE { resource:Q32 property:P122 ?c . ?c rdf:type ontology:Q1307214 }
Luxembourg
action filter_type
action find
entity Luxembourg
relation basic form of government
type form of government
['Luxembourg', 'basic form of government', {'concept': 'form of government'}]
SELECT DISTINCT ?c WHERE { resource:Luxembourg property:basic_form_of_government ?c . ?c rdf:type ontology:form_of_government }
[]
form of government
Q7269
SYSTEM
monarchy
Q7269
(Q32,P122,c(Q1307214))
action filter_type
action find
entity Q32
relation P122
type Q1307214
[ANSWER] best describes the form of government of Luxembourg
['Q32', 'P122', {'concept': 'Q1307214'}]
SELECT DISTINCT ?c WHERE { resource:Q32 property:P122 ?c . ?c rdf:type ontology:Q1307214 }
monarchy
Monarchy best describes the form of government of Luxembourg
monarchy
action filter_type
action find
entity Luxembourg
relation basic form of government
type form of government
['Luxembourg', 'basic form of government', {'concept': 'form of government'}]
SELECT DISTINCT ?c WHERE { resource:Luxembourg property:basic_form_of_government ?c . ?c rdf:type ontology:form_of_government }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1001
Q15617994 Q17335294 Q192350
USER
Which administrative territories are judicially linked to atleast 7 coats of arms and ministries ?
(c(Q17335294)|c(Q192350),P1001,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
value 7
[[{'concept': 'Q17335294'}, {'concept': 'Q192350'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) ?r WHERE { VALUES ( ?n ) { ( ontology:Q17335294 ) ( ontology:Q192350 ) } . ?p rdf:type ?n } GROUP BY ?r } . FILTER ( ?c >= 7 ) }
action atleast
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
value 7
[[{'concept': 'flag or coat of arms'}, {'concept': 'ministry'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) ?r WHERE { VALUES ( ?n ) { ( ontology:flag_or_coat_of_arms ) ( ontology:ministry ) } . ?p rdf:type ?n } GROUP BY ?r } . FILTER ( ?c >= 7 ) }
[]
designation for an administrative territorial entity flag or coat of arms ministry
Q145 Q30 Q34
SYSTEM
United Kingdom, United States of America, Sweden
Q145 Q30 Q34
(c(Q17335294)|c(Q192350),P1001,c(Q15617994))
action atleast
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
value 7
[ANSWERS] are judicially linked to atleast 7 coats of arms and ministries
[[{'concept': 'Q17335294'}, {'concept': 'Q192350'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) ?r WHERE { VALUES ( ?n ) { ( ontology:Q17335294 ) ( ontology:Q192350 ) } . ?p rdf:type ?n } GROUP BY ?r } . FILTER ( ?c >= 7 ) }
United Kingdom United States of America Sweden
United Kingdom, United States of America and Sweden are judicially linked to atleast 7 coats of arms and ministries
United Kingdom United States of America Sweden
action atleast
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
value 7
[[{'concept': 'flag or coat of arms'}, {'concept': 'ministry'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) ?r WHERE { VALUES ( ?n ) { ( ontology:flag_or_coat_of_arms ) ( ontology:ministry ) } . ?p rdf:type ?n } GROUP BY ?r } . FILTER ( ?c >= 7 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q15617994 Q838948 Q15416
USER
How many administrative territories are the narrative locations of exactly 5 works of art or television programs ?
(c(Q838948)|c(Q15416),P840,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
value 5
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q838948 } UNION { ?f property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15416 } } GROUP BY ?y } . FILTER ( ?b = 5 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
value 5
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:work_of_art } UNION { ?f property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:television_program } } GROUP BY ?y } . FILTER ( ?b = 5 ) }
[]
designation for an administrative territorial entity work of art television program
SYSTEM
3
Q189 Q27 Q29
(c(Q838948)|c(Q15416),P840,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q15416
value 5
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q838948 } UNION { ?f property:P840 ?y . ?y rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15416 } } GROUP BY ?y } . FILTER ( ?b = 5 ) }
Iceland Ireland Spain
3
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type television program
value 5
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?f ) AS ?b ) WHERE { { ?f property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:work_of_art } UNION { ?f property:narrative_location ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:television_program } } GROUP BY ?y } . FILTER ( ?b = 5 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P6
Q502895
USER
Who are the heads of the government of United Kingdom ?
(Q145,P6,c(Q502895))
action filter_type
action find
entity Q145
relation P6
type Q502895
['Q145', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q145 property:P6 ?q . ?q rdf:type ontology:Q502895 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation head of government
type common name
['United Kingdom', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:United_Kingdom property:head_of_government ?q . ?q rdf:type ontology:common_name }
[]
common name
Q192 Q264766
SYSTEM
David Cameron, Theresa May
Q192 Q264766
(Q145,P6,c(Q502895))
action filter_type
action find
entity Q145
relation P6
type Q502895
The heads of the government of United Kingdom are on [ANSWERS]
['Q145', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q145 property:P6 ?q . ?q rdf:type ontology:Q502895 }
David Cameron Theresa May
The heads of the government of United Kingdom are on David Cameron and Theresa May
David Cameron Theresa May
action filter_type
action find
entity United Kingdom
relation head of government
type common name
['United Kingdom', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:United_Kingdom property:head_of_government ?q . ?q rdf:type ontology:common_name }
[]