Simple Question (Direct)
Simple Question
Q274655
P1344
Q16510064
USER
What did Lucy Morton participate in ?
(Q274655,P1344,c(Q16510064))
action filter_type
action find
entity Q274655
relation P1344
type Q16510064
['Q274655', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?r WHERE { resource:Q274655 property:P1344 ?r . ?r rdf:type ontology:Q16510064 }
Lucy Morton
action filter_type
action find
entity Lucy Morton
relation participant of
type sporting event
['Lucy Morton', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?r WHERE { resource:Lucy_Morton property:participant_of ?r . ?r rdf:type ontology:sporting_event }
[]
sporting event
Q7656292
SYSTEM
Swimming at the 1924 Summer Olympics – Women's 200 metre breaststroke
Q7656292
(Q274655,P1344,c(Q16510064))
action filter_type
action find
entity Q274655
relation P1344
type Q16510064
Lucy Morton participated in [ANSWER]
['Q274655', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?r WHERE { resource:Q274655 property:P1344 ?r . ?r rdf:type ontology:Q16510064 }
Swimming at the 1924 Summer Olympics – Women's 200 metre breaststroke
Lucy Morton participated in Swimming at the 1924 Summer Olympics – Women's 200 metre breaststroke
Swimming at the 1924 Summer Olympics – Women's 200 metre breaststroke
action filter_type
action find
entity Lucy Morton
relation participant of
type sporting event
['Lucy Morton', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?r WHERE { resource:Lucy_Morton property:participant_of ?r . ?r rdf:type ontology:sporting_event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q274655
P734
Q82799
USER
Which names are associated with Lucy Morton ?
(Q274655,P734,c(Q82799))
action filter_type
action find
entity Q274655
relation P734
type Q82799
['Q274655', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q274655 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Lucy Morton
action filter_type
action find
entity Lucy Morton
relation family name
type name
['Lucy Morton', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Lucy_Morton property:family_name ?n . ?n rdf:type ontology:name }
[]
name
Q21502160 Q13570390
SYSTEM
Heaton, Morton
Q21502160 Q13570390
(Q274655,P734,c(Q82799))
action filter_type
action find
entity Q274655
relation P734
type Q82799
[ANSWERS] are associated with Lucy Morton
['Q274655', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q274655 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Heaton Morton
Heaton and Morton are associated with Lucy Morton
Heaton Morton
action filter_type
action find
entity Lucy Morton
relation family name
type name
['Lucy Morton', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Lucy_Morton property:family_name ?n . ?n rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q21502160 Q13570390
P734
Q502895
USER
Whose family name are those ones ?
(c(Q502895),P734,Q21502160) (c(Q502895),P734,Q13570390)
action filter_type
action find_reverse
entity prev_answer
relation P734
type Q502895
[{'concept': 'Q502895'}, 'P734', 'Q21502160'] [{'concept': 'Q502895'}, 'P734', 'Q13570390']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . VALUES ( ?l ) { ( resource:Q21502160 ) ( resource:Q13570390 ) } . ?h property:P734 ?l }
Heaton Morton
action filter_type
action find_reverse
entity prev_answer
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'Heaton'] [{'concept': 'common name'}, 'family name', 'Morton']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . VALUES ( ?l ) { ( resource:Heaton ) ( resource:Morton ) } . ?h property:family_name ?l }
[]
common name
Q274655 Q274655 Q459007
SYSTEM
Joe Morton for 3rd, Lucy Morton for 1st, 2nd
Q274655 Q4749324 Q16211298 Q6774502 Q5405288 Q274655 Q459007
(c(Q502895),P734,Q21502160) (c(Q502895),P734,Q13570390)
action filter_type
action find_reverse
entity prev_answer
relation P734
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P734', 'Q21502160'] [{'concept': 'Q502895'}, 'P734', 'Q13570390']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . VALUES ( ?l ) { ( resource:Q21502160 ) ( resource:Q13570390 ) } . ?h property:P734 ?l }
Lucy Morton Amy Morton Michael Morton Martha Morton Euan Morton Lucy Morton Joe Morton
Lucy Morton, Lucy Morton and Joe Morton are those ones
Lucy Morton Lucy Morton Joe Morton
action filter_type
action find_reverse
entity prev_answer
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'Heaton'] [{'concept': 'common name'}, 'family name', 'Morton']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . VALUES ( ?l ) { ( resource:Heaton ) ( resource:Morton ) } . ?h property:family_name ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q274655
P166
Q618779
USER
Which award was that person awarded with ?
(Q274655,P166,c(Q618779)) (Q274655,P166,c(Q618779)) (Q459007,P166,c(Q618779))
action filter_type
action find
entity Q274655
relation P166
type Q618779
['Q274655', 'P166', {'concept': 'Q618779'}] ['Q274655', 'P166', {'concept': 'Q618779'}] ['Q459007', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q274655 property:P166 ?j . ?j rdf:type ontology:Q618779 }
Lucy Morton
action filter_type
action find
entity Lucy Morton
relation award received
type award
['Lucy Morton', 'award received', {'concept': 'award'}] ['Lucy Morton', 'award received', {'concept': 'award'}] ['Joe Morton', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Lucy_Morton property:award_received ?j . ?j rdf:type ontology:award }
[]
award
Q744713
SYSTEM
International Swimming Hall of Fame
Q744713
(Q274655,P166,c(Q618779)) (Q274655,P166,c(Q618779)) (Q459007,P166,c(Q618779))
action filter_type
action find
entity Q274655
relation P166
type Q618779
That person was awarded the [ANSWER]
['Q274655', 'P166', {'concept': 'Q618779'}] ['Q274655', 'P166', {'concept': 'Q618779'}] ['Q459007', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q274655 property:P166 ?j . ?j rdf:type ontology:Q618779 }
International Swimming Hall of Fame
That person was awarded the International Swimming Hall of Fame
International Swimming Hall of Fame
action filter_type
action find
entity Lucy Morton
relation award received
type award
['Lucy Morton', 'award received', {'concept': 'award'}] ['Lucy Morton', 'award received', {'concept': 'award'}] ['Joe Morton', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Lucy_Morton property:award_received ?j . ?j rdf:type ontology:award }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q744713
P21 P166
Q502895
USER
Which people received the award titled International Swimming Hall of Fame and have the gender as male ?
AND((c(Q502895),P166,Q744713), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q744713
relation P166
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P166', 'Q744713'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?w WHERE { ?w property:P21 resource:Q6581097 . ?w property:P166 resource:Q744713 . ?w rdf:type ontology:Q502895 }
male International Swimming Hall of Fame
action filter_type
action intersection
action find_reverse
entity International Swimming Hall of Fame
relation award received
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'award received', 'International Swimming Hall of Fame'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?w WHERE { ?w property:gender resource:male . ?w property:award_received resource:International_Swimming_Hall_of_Fame . ?w rdf:type ontology:common_name }
[]
common name
Q779886 Q3157205 Q5233267 Q2467085 Q953469 Q127672 Q703944 Q21009749 Q8138839 Q1176824
SYSTEM
Some of them are Brad Cooper, Jack Hatfield, David Edgar, Sydney Battersby, Wally Ris, John Devitt, Jeff Rouse, Austin Rawlinson, Ludy Langer, David Theile
Q127672 Q891096 Q953469 Q1344170 Q1365152 Q173912 Q1909548 Q3549251 Q1927099 Q427316 Q795593 Q720290 Q151284 Q640504 Q3431145 Q1384683 Q962562 Q2301894 Q581786 Q16106110 Q1240159 Q7795749 Q362197 Q433137 Q1095849 Q1675686 Q2304109 Q742739 Q1385348 Q2129600 Q1343677 Q7173972 Q597975 Q1369361 Q6483447 Q6208731 Q724963 Q175645 Q722156 Q495959 Q1173739 Q2471835 Q709511 Q621089 Q290642 Q350531 Q616176 Q1818611 Q504094 Q772038 Q2896667 Q15437231 Q372078 Q532827 Q6904842 Q180748 Q2326219 Q911603 Q779886 Q726281 Q724732 Q328702 Q551257 Q1139622 Q1252486 Q703944 Q5336441 Q953585 Q1333298 Q502172 Q362362 Q796771 Q502995 Q57404 Q1370741 Q11722383 Q352834 Q706637 Q6239234 Q724725 Q1293774 Q796687 Q501955 Q1176824 Q1575698 Q1393698 Q709915 Q436198 Q4711468 Q626152 Q1371916 Q652850 Q494284 Q886929 Q1440092 Q3984810 Q331620 Q545777 Q165894 Q724709 Q21009749 Q1188587 Q365414 Q920578 Q1422886 Q685026 Q1317528 Q446555 Q7689948 Q2467085 Q641810 Q744156 Q138627 Q239586 Q6501642 Q525991 Q7694139 Q1368492 Q459259 Q3440052 Q177969 Q123688 Q3157205 Q8138839 Q2092869 Q1379957 Q1385916 Q991648 Q3991367 Q5233267 Q912241
AND((c(Q502895),P166,Q744713), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q744713
relation P166
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] received the award titled International Swimming Hall of Fame and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P166', 'Q744713'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?w WHERE { ?w property:P21 resource:Q6581097 . ?w property:P166 resource:Q744713 . ?w rdf:type ontology:Q502895 }
John Devitt Ford Konno Wally Ris Bob Windle John Konrads Gary Hall, Sr. Matt Vogel Frank McKinney Mike Bruner William Henry Mike Troy Harry Hebner Johnny Weissmuller Mike Burton Richard Quick Kevin Berry Henry Taylor John Marshall Roy Saari Tom Stock Don McKenzie Thompson Mann Kieren Perkins Anthony Nesty Clarke Scholes Mike McDermott Alan Ford Rick DeMont Melvin Stewart Ralph Flanagan Jon Henricks Peter Fick Steve Lundquist Bill Mulliken Lance Larson Joe Bottom Jimmy McLane Louis Handley Buster Crabbe Victor Davis David Berkoff Yoshihiko Osaki Frederick Lane Jack Medica John Kinsella Don Schollander Jed Graef Leo Goodwin Boy Charlton Joe Verdeur Jesse Vassallo Randy Reese Chet Jastremski Charles Daniels Monte Nitzkowski Mark Spitz Dick Cleveland Norman Ross Brad Cooper Pablo Morales Gunnar Larsson Dick Roth Paulo Radmilovic George Hodgson Doug Russell Jeff Rouse Eddie Reese Cecil Healy Frank Beaurepaire Wally O'Connor Murray Rose Allen Stack John Hencken Michael Gross Steve Clark Jack Nelson Jeff Farrell Michael Wenden John Higgins Alex Baumann Edward Stickles Frederick Holman Harry Glancy David Theile Tim Shaw Joe Ruddy Danyon Loader John Naber Albert Wiggins Jim Montgomery Stephen Holland Duncan Armstrong Carl Robie Ralph Hutton George Kojac Terry Gathercole William Yorzyk John Arthur Jarvis John Davies Mike Barrowman Austin Rawlinson Bob Skelton Adolph Kiefer Tom Dolan Walter Laufer Tom Jager Jerry Heidenreich Charlie Hickcox Taylor Drysdale Sydney Battersby John Derbyshire George Breen David Wilkie Mark Tewksbury Laurie Lawrence Rick Carey Tedford Harris Cann Yoshi Oyakawa Rowdy Gaines Al Vande Weghe Matt Biondi Duke Kahanamoku Jack Hatfield Ludy Langer Perry McGillivray Ian O'Brien Warren Kealoha Bruce Furniss Tim McKee David Edgar Brian Goodell
Brad Cooper, Jack Hatfield, David Edgar, Sydney Battersby, Wally Ris, John Devitt, Jeff Rouse, Austin Rawlinson, Ludy Langer and David Theile received the award titled International Swimming Hall of Fame and have the gender as male
Brad Cooper Jack Hatfield David Edgar Sydney Battersby Wally Ris John Devitt Jeff Rouse Austin Rawlinson Ludy Langer David Theile
action filter_type
action intersection
action find_reverse
entity International Swimming Hall of Fame
relation award received
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'award received', 'International Swimming Hall of Fame'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?w WHERE { ?w property:gender resource:male . ?w property:award_received resource:International_Swimming_Hall_of_Fame . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1301836 Q274655
P27
Q15617994
USER
Which administrative territories are Lucy Morton or Julián Hernández a civilian of ?
OR((Q274655,P27,c(Q15617994)), (Q1301836,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q274655
relation P27
action find
entity Q1301836
relation P27
type Q15617994
{'OR': [['Q274655', 'P27', {'concept': 'Q15617994'}], ['Q1301836', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { ?r property:P27 ?w . VALUES ( ?r ) { ( resource:Q274655 ) ( resource:Q1301836 ) } } . ?w rdf:type ontology:Q15617994 }
Julián Hernández Lucy Morton
action filter_type
action union
action find
entity Lucy Morton
relation country of citizenship
action find
entity Julián Hernández
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lucy Morton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Julián Hernández', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?r property:country_of_citizenship ?w . VALUES ( ?r ) { ( resource:Lucy_Morton ) ( resource:Julián_Hernández ) } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96 Q145
SYSTEM
Mexico, United Kingdom
Q96 Q145
OR((Q274655,P27,c(Q15617994)), (Q1301836,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q274655
relation P27
action find
entity Q1301836
relation P27
type Q15617994
[ANSWERS] are Lucy Morton or Julián Hernández a civilian of
{'OR': [['Q274655', 'P27', {'concept': 'Q15617994'}], ['Q1301836', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { ?r property:P27 ?w . VALUES ( ?r ) { ( resource:Q274655 ) ( resource:Q1301836 ) } } . ?w rdf:type ontology:Q15617994 }
Mexico United Kingdom
Mexico and United Kingdom are Lucy Morton or Julián Hernández a civilian of
Mexico United Kingdom
action filter_type
action union
action find
entity Lucy Morton
relation country of citizenship
action find
entity Julián Hernández
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lucy Morton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Julián Hernández', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?r property:country_of_citizenship ?w . VALUES ( ?r ) { ( resource:Lucy_Morton ) ( resource:Julián_Hernández ) } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q1048835 Q15617994
USER
How many political territories or administrative territories share border with that administrative territory ?
(c(Q1048835),P47,Q145) (c(Q15617994),P47,Q145) (c(Q1048835),P47,Q96) (c(Q15617994),P47,Q96) (c(Q1048835),P47,Q145) (c(Q15617994),P47,Q145)
[{'concept': 'Q1048835'}, 'P47', 'Q145'] [{'concept': 'Q15617994'}, 'P47', 'Q145'] [{'concept': 'Q1048835'}, 'P47', 'Q96'] [{'concept': 'Q15617994'}, 'P47', 'Q96'] [{'concept': 'Q1048835'}, 'P47', 'Q145'] [{'concept': 'Q15617994'}, 'P47', 'Q145']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } UNION { ?z property:P47 resource:Q2294975 } UNION { ?y property:P47 resource:Q2294975 } UNION { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'political territorial entity'}, 'shares border with', 'Mexico'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Mexico'] [{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } UNION { ?z property:shares_border_with resource:Mexico } UNION { ?y property:shares_border_with resource:Mexico } UNION { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
political territorial entity designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q145
SYSTEM
Did you mean United Kingdom ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } UNION { ?z property:P47 resource:Q2294975 } UNION { ?y property:P47 resource:Q2294975 } UNION { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
Did you mean United Kingdom ?
United Kingdom
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } UNION { ?z property:shares_border_with resource:Mexico } UNION { ?y property:shares_border_with resource:Mexico } UNION { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q1048835),P47,Q145) (c(Q15617994),P47,Q145) (c(Q1048835),P47,Q96) (c(Q15617994),P47,Q96) (c(Q1048835),P47,Q145) (c(Q15617994),P47,Q145)
[{'concept': 'Q1048835'}, 'P47', 'Q145'] [{'concept': 'Q15617994'}, 'P47', 'Q145'] [{'concept': 'Q1048835'}, 'P47', 'Q96'] [{'concept': 'Q15617994'}, 'P47', 'Q96'] [{'concept': 'Q1048835'}, 'P47', 'Q145'] [{'concept': 'Q15617994'}, 'P47', 'Q145']
[{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'political territorial entity'}, 'shares border with', 'Mexico'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Mexico'] [{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom']
[]
SYSTEM
4
Q142 Q717 Q35 Q27
(c(Q1048835),P47,Q145) (c(Q15617994),P47,Q145) (c(Q1048835),P47,Q96) (c(Q15617994),P47,Q96) (c(Q1048835),P47,Q145) (c(Q15617994),P47,Q145)
[ANSWER]
[{'concept': 'Q1048835'}, 'P47', 'Q145'] [{'concept': 'Q15617994'}, 'P47', 'Q145'] [{'concept': 'Q1048835'}, 'P47', 'Q96'] [{'concept': 'Q15617994'}, 'P47', 'Q96'] [{'concept': 'Q1048835'}, 'P47', 'Q145'] [{'concept': 'Q15617994'}, 'P47', 'Q145']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } UNION { ?z property:P47 resource:Q2294975 } UNION { ?y property:P47 resource:Q2294975 } UNION { ?z property:P47 resource:Q225249 } UNION { ?y property:P47 resource:Q225249 } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 }
France Venezuela Denmark Ireland
4
[{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'political territorial entity'}, 'shares border with', 'Mexico'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Mexico'] [{'concept': 'political territorial entity'}, 'shares border with', 'United Kingdom'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'United Kingdom']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } UNION { ?z property:shares_border_with resource:Mexico } UNION { ?y property:shares_border_with resource:Mexico } UNION { ?z property:shares_border_with resource:United_Kingdom } UNION { ?y property:shares_border_with resource:United_Kingdom } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]