Simple Question (Direct)
Simple Question
Q2871401
P734
Q82799
USER
Which name is associated with Auguste Sicard ?
(Q2871401,P734,c(Q82799))
action filter_type
action find
entity Q2871401
relation P734
type Q82799
['Q2871401', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q2871401 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Auguste Sicard
action filter_type
action find
entity Auguste Sicard
relation family name
type name
['Auguste Sicard', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Auguste_Sicard property:family_name ?y . ?y rdf:type ontology:name }
[]
name
Q21449625
SYSTEM
Sicard
Q21449625
(Q2871401,P734,c(Q82799))
action filter_type
action find
entity Q2871401
relation P734
type Q82799
Card [ANSWER] is associated with Auguste [ANSWER]
['Q2871401', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q2871401 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Sicard
Card Sicard is associated with Auguste Sicard
Sicard
action filter_type
action find
entity Auguste Sicard
relation family name
type name
['Auguste Sicard', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Auguste_Sicard property:family_name ?y . ?y rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2871401
P19
Q20667921
USER
Which french administrative division was that person born in ?
(Q21449625,P19,c(Q20667921))
action filter_type
action find
entity Q2871401
relation P19
type Q20667921
['Q21449625', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?s WHERE { resource:Q2871401 property:P19 ?s . ?s rdf:type ontology:Q20667921 }
Auguste Sicard
action filter_type
action find
entity Auguste Sicard
relation place of birth
type type of french administrative division
['Sicard', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?s WHERE { resource:Auguste_Sicard property:place_of_birth ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q132801
SYSTEM
Albi
Q132801
(Q21449625,P19,c(Q20667921))
action filter_type
action find
entity Q2871401
relation P19
type Q20667921
That person was born in [ANSWER]
['Q21449625', 'P19', {'concept': 'Q20667921'}]
SELECT DISTINCT ?s WHERE { resource:Q2871401 property:P19 ?s . ?s rdf:type ontology:Q20667921 }
Albi
That person was born in Albi
Albi
action filter_type
action find
entity Auguste Sicard
relation place of birth
type type of french administrative division
['Sicard', 'place of birth', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?s WHERE { resource:Auguste_Sicard property:place_of_birth ?s . ?s rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q20667921 Q486972
USER
How many human settlements are the capital of approximately 1 french administrative division ?
(c(Q486972),P1376,c(Q20667921))
action count
action approx
action find_tuple_counts
relation P1376
type Q486972
type Q20667921
value 1
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?r ) WHERE { ?u property:P1376 ?n . ?n rdf:type ontology:Q20667921 . ?u rdf:type ontology:Q486972 } GROUP BY ?u } . FILTER ( ?r = 1 ) }
action count
action approx
action find_tuple_counts
relation capital of
type human settlement
type type of french administrative division
value 1
[{'concept': 'human settlement'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?r ) WHERE { ?u property:capital_of ?n . ?n rdf:type ontology:type_of_french_administrative_division . ?u rdf:type ontology:human_settlement } GROUP BY ?u } . FILTER ( ?r = 1 ) }
[]
type of french administrative division human settlement
SYSTEM
3
Q150039 Q323593 Q30940
(c(Q486972),P1376,c(Q20667921))
action count
action approx
action find_tuple_counts
relation P1376
type Q486972
type Q20667921
value 1
[ANSWER]
[{'concept': 'Q486972'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?r ) WHERE { ?u property:P1376 ?n . ?n rdf:type ontology:Q20667921 . ?u rdf:type ontology:Q486972 } GROUP BY ?u } . FILTER ( ?r = 1 ) }
Neuf-Brisach Vitry-en-Artois Albert
3
action count
action approx
action find_tuple_counts
relation capital of
type human settlement
type type of french administrative division
value 1
[{'concept': 'human settlement'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?n ) AS ?r ) WHERE { ?u property:capital_of ?n . ?n rdf:type ontology:type_of_french_administrative_division . ?u rdf:type ontology:human_settlement } GROUP BY ?u } . FILTER ( ?r = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q132801 Q168372
P17
Q15617994
USER
How many administrative territories are Albi or Cheile Nerei-Beușnița National Park a part of ?
(Q132801,P17,c(Q15617994)) (Q168372,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q132801
relation P17
type Q15617994
action filter_type
action find
entity Q168372
relation P17
type Q15617994
['Q132801', 'P17', {'concept': 'Q15617994'}] ['Q168372', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { resource:Q132801 property:P17 ?y . ?y rdf:type ontology:Q15617994 } UNION { resource:Q168372 property:P17 ?y . ?y rdf:type ontology:Q15617994 } }
Albi Cheile Nerei-Beușnița National Park
action count
action union
action filter_type
action find
entity Albi
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Cheile Nerei-Beușnița National Park
relation country
type designation for an administrative territorial entity
['Albi', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cheile Nerei-Beușnița National Park', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { resource:Albi property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Cheile_Nerei-Beușnița_National_Park property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q142 Q218
(Q132801,P17,c(Q15617994)) (Q168372,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q132801
relation P17
type Q15617994
action filter_type
action find
entity Q168372
relation P17
type Q15617994
[ANSWER]
['Q132801', 'P17', {'concept': 'Q15617994'}] ['Q168372', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { resource:Q132801 property:P17 ?y . ?y rdf:type ontology:Q15617994 } UNION { resource:Q168372 property:P17 ?y . ?y rdf:type ontology:Q15617994 } }
France Romania
2
action count
action union
action filter_type
action find
entity Albi
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Cheile Nerei-Beușnița National Park
relation country
type designation for an administrative territorial entity
['Albi', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Cheile Nerei-Beușnița National Park', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { resource:Albi property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Cheile_Nerei-Beușnița_National_Park property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q132801
P1427
Q878123
USER
Which racing starts at Albi ?
(c(Q878123),P1427,Q132801)
action filter_type
action find_reverse
entity Q132801
relation P1427
type Q878123
[{'concept': 'Q878123'}, 'P1427', 'Q132801']
SELECT DISTINCT ?q WHERE { ?q property:P1427 resource:Q132801 . ?q rdf:type ontology:Q878123 }
Albi
action filter_type
action find_reverse
entity Albi
relation start point
type racing
[{'concept': 'racing'}, 'start point', 'Albi']
SELECT DISTINCT ?q WHERE { ?q property:start_point resource:Albi . ?q rdf:type ontology:racing }
[]
racing
Q446156
SYSTEM
2005 Tour de France, Stage 18
Q446156
(c(Q878123),P1427,Q132801)
action filter_type
action find_reverse
entity Q132801
relation P1427
type Q878123
The [ANSWER] starts at Albi
[{'concept': 'Q878123'}, 'P1427', 'Q132801']
SELECT DISTINCT ?q WHERE { ?q property:P1427 resource:Q132801 . ?q rdf:type ontology:Q878123 }
2005 Tour de France, Stage 18
The 2005 Tour de France, Stage 18 starts at Albi
2005 Tour de France, Stage 18
action filter_type
action find_reverse
entity Albi
relation start point
type racing
[{'concept': 'racing'}, 'start point', 'Albi']
SELECT DISTINCT ?q WHERE { ?q property:start_point resource:Albi . ?q rdf:type ontology:racing }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q446156
P1444
Q20667921
USER
Which french administrative division is the end point of that racing ?
(Q446156,P1444,c(Q20667921))
action filter_type
action find
entity Q446156
relation P1444
type Q20667921
['Q446156', 'P1444', {'concept': 'Q20667921'}]
SELECT DISTINCT ?i WHERE { resource:Q446156 property:P1444 ?i . ?i rdf:type ontology:Q20667921 }
2005 Tour de France, Stage 18
action filter_type
action find
entity 2005 Tour de France, Stage 18
relation destination point
type type of french administrative division
['2005 Tour de France, Stage 18', 'destination point', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?i WHERE { resource:2005_Tour_de_France,_Stage_18 property:destination_point ?i . ?i rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q191772
SYSTEM
Mende
Q191772
(Q446156,P1444,c(Q20667921))
action filter_type
action find
entity Q446156
relation P1444
type Q20667921
[ANSWER] is the end point of that racing
['Q446156', 'P1444', {'concept': 'Q20667921'}]
SELECT DISTINCT ?i WHERE { resource:Q446156 property:P1444 ?i . ?i rdf:type ontology:Q20667921 }
Mende
Mende is the end point of that racing
Mende
action filter_type
action find
entity 2005 Tour de France, Stage 18
relation destination point
type type of french administrative division
['2005 Tour de France, Stage 18', 'destination point', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?i WHERE { resource:2005_Tour_de_France,_Stage_18 property:destination_point ?i . ?i rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q191772
P20
Q502895
USER
Who died in that french administrative division ?
(c(Q502895),P20,Q191772)
action filter_type
action find_reverse
entity Q191772
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q191772']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P20 resource:Q191772 }
Mende
action filter_type
action find_reverse
entity Mende
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Mende']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:place_of_death resource:Mende }
[]
common name
Q3384541 Q3166227 Q2825162
SYSTEM
Pierre Couderc, Jean-Jacques Delmas, Adrien Durand
Q3022917 Q3436755 Q3384541 Q16027339 Q15973896 Q16026132 Q2976742 Q3093548 Q16645479 Q3166227 Q3387435 Q3372661 Q2005417 Q3157966 Q3579750 Q3124200 Q15968028 Q8321141 Q3425901 Q2825162 Q15969666 Q3188318 Q15973885 Q2959856 Q3166277 Q16026851 Q15971869 Q3089858 Q3132094
(c(Q502895),P20,Q191772)
action filter_type
action find_reverse
entity Q191772
relation P20
type Q502895
[ANSWERS] died in that french administrative division
[{'concept': 'Q502895'}, 'P20', 'Q191772']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P20 resource:Q191772 }
Denis Salaville Robert du Bosc Pierre Couderc Julien Costes Xavier Bourrillon Amédée Monteils Claude-Jean-Joseph Brulley de La Brunière Gabriel-Florent de Choiseul-Beaupré Jean Guillon Jean-Jacques Delmas Pierre de Baglion de La Salle Paulin Daudé-Gleize Privat de Mende Jacques-Jean Gély Édouard Bousquet Gérard Ménatory Laurent Servière François-Narcisse Baptifolier René Boudon Adrien Durand Fortuné Renouard Jules-Alexandre Cusin Maurice Bourrillon Charles Morel Jean-Jacques Goblot François-Justin Jaffard Charles Frédéric Abram Frédéric Grousset Henri Trémolet de Villers
Pierre Couderc, Jean-Jacques Delmas and Adrien Durand died in that french administrative division
Pierre Couderc Jean-Jacques Delmas Adrien Durand
action filter_type
action find_reverse
entity Mende
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Mende']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:place_of_death resource:Mende }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7298037 Q2871401
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Auguste Sicard or Ray Robinson ?
OR((Q2871401,P27,c(Q15617994)), (Q7298037,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2871401
relation P27
action find
entity Q7298037
relation P27
type Q15617994
{'OR': [['Q2871401', 'P27', {'concept': 'Q15617994'}], ['Q7298037', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q2871401 property:P27 ?d } UNION { resource:Q7298037 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
Ray Robinson Auguste Sicard
action filter_type
action union
action find
entity Auguste Sicard
relation country of citizenship
action find
entity Ray Robinson
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Auguste Sicard', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ray Robinson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Auguste_Sicard property:country_of_citizenship ?d } UNION { resource:Ray_Robinson property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q145
SYSTEM
France, United Kingdom
Q142 Q145
OR((Q2871401,P27,c(Q15617994)), (Q7298037,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2871401
relation P27
action find
entity Q7298037
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Auguste Sicard or Ray Robinson
{'OR': [['Q2871401', 'P27', {'concept': 'Q15617994'}], ['Q7298037', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q2871401 property:P27 ?d } UNION { resource:Q7298037 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
France United Kingdom
France and United Kingdom are the countries of citizenship of Auguste Sicard or Ray Robinson
France United Kingdom
action filter_type
action union
action find
entity Auguste Sicard
relation country of citizenship
action find
entity Ray Robinson
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Auguste Sicard', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ray Robinson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Auguste_Sicard property:country_of_citizenship ?d } UNION { resource:Ray_Robinson property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7298037
P735
Q82799
USER
What is forename of Ray Robinson ?
(Q7298037,P735,c(Q82799))
action filter_type
action find
entity Q7298037
relation P735
type Q82799
['Q7298037', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q7298037 property:P735 ?o }
Ray Robinson
action filter_type
action find
entity Ray Robinson
relation given name
type name
['Ray Robinson', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Ray_Robinson property:given_name ?o }
[]
name
Q2133832
SYSTEM
Ray
Q2133832
(Q7298037,P735,c(Q82799))
action filter_type
action find
entity Q7298037
relation P735
type Q82799
Forename of [ANSWER] Robinson is of [ANSWER]
['Q7298037', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q82799 . resource:Q7298037 property:P735 ?o }
Ray
Forename of Ray Robinson is of Ray
Ray
action filter_type
action find
entity Ray Robinson
relation given name
type name
['Ray Robinson', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:name . resource:Ray_Robinson property:given_name ?o }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q5239876
P248
Q11032 Q35749 Q502895
USER
Which people have been recognized first in greater number of newspapers and parliaments than David Smith ?
(c(Q502895),P248,c(Q11032)|c(Q35749))
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q35749
action count
action filter_multi_types
action find
entity Q5239876
relation P248
type Q11032
type Q35749
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) ?o WHERE { { ?o property:P248 ?i . ?o rdf:type ontology:Q502895 . ?i rdf:type ontology:Q11032 } UNION { ?o property:P248 ?i . ?o rdf:type ontology:Q502895 . ?i rdf:type ontology:Q35749 } } GROUP BY ?o } . FILTER ( ?b > ?e ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Q5239876 property:P248 ?z . { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:Q35749 ) ( ontology:Q11032 ) } } } } }
David Smith
action greater
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type parliament
action count
action filter_multi_types
action find
entity David Smith
relation stated in
type newspaper
type parliament
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) ?o WHERE { { ?o property:stated_in ?i . ?o rdf:type ontology:common_name . ?i rdf:type ontology:newspaper } UNION { ?o property:stated_in ?i . ?o rdf:type ontology:common_name . ?i rdf:type ontology:parliament } } GROUP BY ?o } . FILTER ( ?b > ?e ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:David_Smith property:stated_in ?z . { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:parliament ) ( ontology:newspaper ) } } } } }
[]
newspaper parliament common name
Q5239881 Q5233457 Q5606262
SYSTEM
David Smith, David Evans, Greg Smith
Q6249889 Q9069823 Q5606264 Q5606262 Q7351128 Q6262713 Q17626521 Q8020385 Q16031816 Q5239881 Q8019902 Q6228730 Q15637844 Q6237308 Q18166520 Q5239885 Q5233457 Q6239258 Q8020394 Q8020390 Q17385895 Q6257915 Q9311159 Q6246961 Q8020402 Q15990004
(c(Q502895),P248,c(Q11032)|c(Q35749))
action greater
action union
action find_tuple_counts
relation P248
type Q502895
type Q11032
action find_tuple_counts
relation P248
type Q502895
type Q35749
action count
action filter_multi_types
action find
entity Q5239876
relation P248
type Q11032
type Q35749
[ANSWERS] have been recognized first in greater number of newspapers and parliaments than David Smith
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q11032'}, {'concept': 'Q35749'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) ?o WHERE { { ?o property:P248 ?i . ?o rdf:type ontology:Q502895 . ?i rdf:type ontology:Q11032 } UNION { ?o property:P248 ?i . ?o rdf:type ontology:Q502895 . ?i rdf:type ontology:Q35749 } } GROUP BY ?o } . FILTER ( ?b > ?e ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:Q5239876 property:P248 ?z . { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:Q35749 ) ( ontology:Q11032 ) } } } } }
John Murphy Robert Williams Greg Smith Greg Smith Robert Williams John Walker Colin Campbell William Williams William Walker David Smith William Walker John Davies David Smith John Hall William Thompson David Smith David Evans John Hill William Williams William Williams David Evans John Simpson Robert Williams John Martin William Williams John Gray
David Smith, David Evans and Greg Smith have been recognized first in greater number of newspapers and parliaments than David Smith
David Smith David Evans Greg Smith
action greater
action union
action find_tuple_counts
relation stated in
type common name
type newspaper
action find_tuple_counts
relation stated in
type common name
type parliament
action count
action filter_multi_types
action find
entity David Smith
relation stated in
type newspaper
type parliament
[{'concept': 'common name'}, 'stated in', [{'concept': 'newspaper'}, {'concept': 'parliament'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?b ) ?o WHERE { { ?o property:stated_in ?i . ?o rdf:type ontology:common_name . ?i rdf:type ontology:newspaper } UNION { ?o property:stated_in ?i . ?o rdf:type ontology:common_name . ?i rdf:type ontology:parliament } } GROUP BY ?o } . FILTER ( ?b > ?e ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { resource:David_Smith property:stated_in ?z . { ?z rdf:type ?p . VALUES ( ?p ) { ( ontology:parliament ) ( ontology:newspaper ) } } } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q739 Q145
P47 P530
Q15617994
USER
Which administrative territories holds diplomatic relationship with United Kingdom and have a shared border with Colombia ?
AND((Q145,P530,c(Q15617994)), (Q739,P47,c(Q15617994)))
action filter_type
action intersection
action find
entity Q145
relation P530
action find
entity Q739
relation P47
type Q15617994
{'AND': [['Q145', 'P530', {'concept': 'Q15617994'}], ['Q739', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { resource:Q145 property:P530 ?p . resource:Q739 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Colombia United Kingdom
action filter_type
action intersection
action find
entity United Kingdom
relation diplomatic relation
action find
entity Colombia
relation shares border with
type designation for an administrative territorial entity
{'AND': [['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Colombia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:United_Kingdom property:diplomatic_relation ?p . resource:Colombia property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
AND((Q145,P530,c(Q15617994)), (Q739,P47,c(Q15617994)))
action filter_type
action intersection
action find
entity Q145
relation P530
action find
entity Q739
relation P47
type Q15617994
[ANSWER] holds diplomatic relationship with United Kingdom and have a shared border with Colombia
{'AND': [['Q145', 'P530', {'concept': 'Q15617994'}], ['Q739', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { resource:Q145 property:P530 ?p . resource:Q739 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Brazil
Brazil holds diplomatic relationship with United Kingdom and have a shared border with Colombia
Brazil
action filter_type
action intersection
action find
entity United Kingdom
relation diplomatic relation
action find
entity Colombia
relation shares border with
type designation for an administrative territorial entity
{'AND': [['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Colombia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { resource:United_Kingdom property:diplomatic_relation ?p . resource:Colombia property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]