Simple Question (Direct)
Simple Question
Q49356
P1412
Q34770
USER
Which language does Ira Remsen speak in ?
(Q49356,P1412,c(Q34770))
action filter_type
action find
entity Q49356
relation P1412
type Q34770
['Q49356', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q34770 . resource:Q49356 property:P1412 ?g }
Ira Remsen
action filter_type
action find
entity Ira Remsen
relation languages spoken, written or signed
type language
['Ira Remsen', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:language . resource:Ira_Remsen property:languages_spoken,_written_or_signed ?g }
[]
language
Q1860
SYSTEM
English
Q1860
(Q49356,P1412,c(Q34770))
action filter_type
action find
entity Q49356
relation P1412
type Q34770
Ira Remsen speaks the [ANSWER]
['Q49356', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q34770 . resource:Q49356 property:P1412 ?g }
English
Ira Remsen speaks the English
English
action filter_type
action find
entity Ira Remsen
relation languages spoken, written or signed
type language
['Ira Remsen', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:language . resource:Ira_Remsen property:languages_spoken,_written_or_signed ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q49356
P184
Q502895
USER
Who was the advisor of that one ?
(Q1860,P184,c(Q502895))
action filter_type
action find
entity Q49356
relation P184
type Q502895
['Q1860', 'P184', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q49356 property:P184 ?t . ?t rdf:type ontology:Q502895 }
Ira Remsen
action filter_type
action find
entity Ira Remsen
relation doctoral advisor
type common name
['English', 'doctoral advisor', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Ira_Remsen property:doctoral_advisor ?t . ?t rdf:type ontology:common_name }
[]
common name
Q62984
SYSTEM
Wilhelm Rudolph Fittig
Q62984
(Q1860,P184,c(Q502895))
action filter_type
action find
entity Q49356
relation P184
type Q502895
The advisor of that one was the [ANSWER]
['Q1860', 'P184', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q49356 property:P184 ?t . ?t rdf:type ontology:Q502895 }
Wilhelm Rudolph Fittig
The advisor of that one was the Wilhelm Rudolph Fittig
Wilhelm Rudolph Fittig
action filter_type
action find
entity Ira Remsen
relation doctoral advisor
type common name
['English', 'doctoral advisor', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Ira_Remsen property:doctoral_advisor ?t . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q62984
P108
Q811979 Q3918
USER
How many architectural structures or universities are the employers of Wilhelm Rudolph Fittig ?
(Q62984,P108,c(Q811979)) (Q62984,P108,c(Q3918))
action count
action union
action filter_type
action find
entity Q62984
relation P108
type Q811979
action filter_type
action find
entity Q62984
relation P108
type Q3918
['Q62984', 'P108', {'concept': 'Q811979'}] ['Q62984', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u rdf:type ?l . VALUES ( ?l ) { ( ontology:Q3918 ) ( ontology:Q811979 ) } }
Wilhelm Rudolph Fittig
action count
action union
action filter_type
action find
entity Wilhelm Rudolph Fittig
relation employer
type architectural structure
action filter_type
action find
entity Wilhelm Rudolph Fittig
relation employer
type university
['Wilhelm Rudolph Fittig', 'employer', {'concept': 'architectural structure'}] ['Wilhelm Rudolph Fittig', 'employer', {'concept': 'university'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u rdf:type ?l . VALUES ( ?l ) { ( ontology:university ) ( ontology:architectural_structure ) } }
[]
architectural structure university
SYSTEM
2
Q153978 Q152838
(Q62984,P108,c(Q811979)) (Q62984,P108,c(Q3918))
action count
action union
action filter_type
action find
entity Q62984
relation P108
type Q811979
action filter_type
action find
entity Q62984
relation P108
type Q3918
[ANSWER]
['Q62984', 'P108', {'concept': 'Q811979'}] ['Q62984', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u rdf:type ?l . VALUES ( ?l ) { ( ontology:Q3918 ) ( ontology:Q811979 ) } }
University of Tübingen University of Göttingen
2
action count
action union
action filter_type
action find
entity Wilhelm Rudolph Fittig
relation employer
type architectural structure
action filter_type
action find
entity Wilhelm Rudolph Fittig
relation employer
type university
['Wilhelm Rudolph Fittig', 'employer', {'concept': 'architectural structure'}] ['Wilhelm Rudolph Fittig', 'employer', {'concept': 'university'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u rdf:type ?l . VALUES ( ?l ) { ( ontology:university ) ( ontology:architectural_structure ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q62984
P138
Q36534
USER
Which chemical reaction has that person as its namesake ?
action filter_type
action find_reverse
entity Q62984
relation P138
type Q36534
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q62984 . ?f rdf:type ontology:Q36534 }
Wilhelm Rudolph Fittig
action filter_type
action find_reverse
entity Wilhelm Rudolph Fittig
relation named after
type chemical reaction
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Wilhelm_Rudolph_Fittig . ?f rdf:type ontology:chemical_reaction }
[]
chemical reaction
Q901404
SYSTEM
Wurtz–Fittig reaction
Q901404
action filter_type
action find_reverse
entity Q62984
relation P138
type Q36534
[ANSWER] has that person as its namesake
SELECT DISTINCT ?f WHERE { ?f property:P138 resource:Q62984 . ?f rdf:type ontology:Q36534 }
Wurtz–Fittig reaction
Wurtz–Fittig reaction has that person as its namesake
Wurtz–Fittig reaction
action filter_type
action find_reverse
entity Wilhelm Rudolph Fittig
relation named after
type chemical reaction
SELECT DISTINCT ?f WHERE { ?f property:named_after resource:Wilhelm_Rudolph_Fittig . ?f rdf:type ontology:chemical_reaction }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q62984 Q11597949
P108
Q3918
USER
How many universities are the employers of Wilhelm Rudolph Fittig or Danshi Tatekawa ?
(Q62984,P108,c(Q3918)) (Q11597949,P108,c(Q3918))
action count
action union
action filter_type
action find
entity Q62984
relation P108
type Q3918
action filter_type
action find
entity Q11597949
relation P108
type Q3918
['Q62984', 'P108', {'concept': 'Q3918'}] ['Q11597949', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { resource:Q62984 property:P108 ?v . ?v rdf:type ontology:Q3918 } UNION { ?v rdf:type ontology:Q3918 . resource:Q11597949 property:P108 ?v } }
Wilhelm Rudolph Fittig Danshi Tatekawa
action count
action union
action filter_type
action find
entity Wilhelm Rudolph Fittig
relation employer
type university
action filter_type
action find
entity Danshi Tatekawa
relation employer
type university
['Wilhelm Rudolph Fittig', 'employer', {'concept': 'university'}] ['Danshi Tatekawa', 'employer', {'concept': 'university'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { resource:Wilhelm_Rudolph_Fittig property:employer ?v . ?v rdf:type ontology:university } UNION { ?v rdf:type ontology:university . resource:Danshi_Tatekawa property:employer ?v } }
[]
university
SYSTEM
2
Q153978 Q5197742
(Q62984,P108,c(Q3918)) (Q11597949,P108,c(Q3918))
action count
action union
action filter_type
action find
entity Q62984
relation P108
type Q3918
action filter_type
action find
entity Q11597949
relation P108
type Q3918
[ANSWER]
['Q62984', 'P108', {'concept': 'Q3918'}] ['Q11597949', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { resource:Q62984 property:P108 ?v . ?v rdf:type ontology:Q3918 } UNION { ?v rdf:type ontology:Q3918 . resource:Q11597949 property:P108 ?v } }
University of Tübingen Cyber University
2
action count
action union
action filter_type
action find
entity Wilhelm Rudolph Fittig
relation employer
type university
action filter_type
action find
entity Danshi Tatekawa
relation employer
type university
['Wilhelm Rudolph Fittig', 'employer', {'concept': 'university'}] ['Danshi Tatekawa', 'employer', {'concept': 'university'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { { resource:Wilhelm_Rudolph_Fittig property:employer ?v . ?v rdf:type ontology:university } UNION { ?v rdf:type ontology:university . resource:Danshi_Tatekawa property:employer ?v } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q811980
P725
Q502895 Q11424
USER
Which films had their voice dubbing done by greater number of people than The Adventures of Lolo the Penguin ?
(c(Q11424),P725,c(Q502895))
action greater
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q811980
relation P725
type Q11424
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?q ) WHERE { ?w property:P725 ?s . ?w rdf:type ontology:Q11424 . ?s rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { ?y rdf:type ontology:Q11424 . resource:Q811980 property:P725 ?y } } . FILTER ( ?q > ?r ) }
The Adventures of Lolo the Penguin
action greater
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity The Adventures of Lolo the Penguin
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?q ) WHERE { ?w property:voice_actor ?s . ?w rdf:type ontology:film . ?s rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { ?y rdf:type ontology:film . resource:The_Adventures_of_Lolo_the_Penguin property:voice_actor ?y } } . FILTER ( ?q > ?r ) }
[]
common name film
Q190135 Q19090 Q271189
SYSTEM
The Little Mermaid, Robin Hood, Hercules
Q378913 Q4499813 Q191753 Q6929072 Q785294 Q204662 Q521082 Q1764174 Q752301 Q270470 Q334132 Q4341553 Q215518 Q1160649 Q134430 Q215617 Q179673 Q216929 Q853718 Q374431 Q12084660 Q165512 Q578595 Q933887 Q329316 Q213787 Q611739 Q980041 Q3588859 Q249967 Q19090 Q184701 Q2059996 Q190135 Q465275 Q218894 Q15270775 Q172284 Q202371 Q40302 Q189875 Q43051 Q917278 Q1406374 Q498434 Q199839 Q36479 Q39722 Q40895 Q1102410 Q271189 Q3226633
(c(Q11424),P725,c(Q502895))
action greater
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q811980
relation P725
type Q11424
[ANSWERS] had their voice dubbing done by greater number of people than The Adventures of Lolo the Penguin
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?q ) WHERE { ?w property:P725 ?s . ?w rdf:type ontology:Q11424 . ?s rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { ?y rdf:type ontology:Q11424 . resource:Q811980 property:P725 ?y } } . FILTER ( ?q > ?r ) }
The Lord of the Rings Home Cinderella Mr. Peabody & Sherman Captain of the Forest The Sword in the Stone Szaffi Quest for Camelot Flushed Away Peter Pan The Great Mouse Detective Pinocchio Aladdin Mattie the Goose-boy Snow White and the Seven Dwarfs Sleeping Beauty Beauty and the Beast Oliver & Company Fun and Fancy Free The Tigger Movie The Princess and the Goblin One Hundred and One Dalmatians Paprika Tintin and the Temple of the Sun The Black Cauldron The Hunchback of Notre Dame The Ballad of the Daltons The Adventures of Tintin Emilie Jolie Hotel Transylvania Robin Hood The Aristocats My Little Pony: The Movie The Little Mermaid Fantastic Mr. Fox Pocahontas Hotel Transylvania 2 Lady and the Tramp The Rescuers Down Under The Fox and the Hound Alice in Wonderland Bambi Tokyo Godfathers Piglet's Big Movie The Many Adventures of Winnie the Pooh The Jungle Book The Lion King The Rescuers Dumbo Johnny Corncob Hercules Renart the Fox
The Little Mermaid, Robin Hood and Hercules had their voice dubbing done by greater number of people than The Adventures of Lolo the Penguin
The Little Mermaid Robin Hood Hercules
action greater
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity The Adventures of Lolo the Penguin
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?q ) WHERE { ?w property:voice_actor ?s . ?w rdf:type ontology:film . ?s rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { ?y rdf:type ontology:film . resource:The_Adventures_of_Lolo_the_Penguin property:voice_actor ?y } } . FILTER ( ?q > ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q374431
P725
Q502895 Q11424
USER
And what about The Tigger Movie?
(c(Q11424),P725,c(Q502895))
action greater
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q374431
relation P725
type Q11424
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?g ) WHERE { ?d rdf:type ontology:Q11424 . ?n rdf:type ontology:Q502895 . ?d property:P725 ?n } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { resource:Q374431 property:P725 ?h . ?h rdf:type ontology:Q11424 } } . FILTER ( ?g > ?r ) }
The Tigger Movie
action greater
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity The Tigger Movie
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?g ) WHERE { ?d rdf:type ontology:film . ?n rdf:type ontology:common_name . ?d property:voice_actor ?n } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { resource:The_Tigger_Movie property:voice_actor ?h . ?h rdf:type ontology:film } } . FILTER ( ?g > ?r ) }
[]
common name film
Q190135 Q19090 Q271189
SYSTEM
The Little Mermaid, Robin Hood, Hercules
Q378913 Q191753 Q6929072 Q785294 Q204662 Q521082 Q1764174 Q752301 Q270470 Q334132 Q215518 Q1160649 Q134430 Q215617 Q179673 Q216929 Q853718 Q12084660 Q165512 Q578595 Q933887 Q329316 Q213787 Q611739 Q980041 Q3588859 Q249967 Q19090 Q184701 Q2059996 Q190135 Q465275 Q218894 Q15270775 Q172284 Q202371 Q40302 Q189875 Q43051 Q917278 Q498434 Q199839 Q36479 Q39722 Q40895 Q271189 Q3226633
(c(Q11424),P725,c(Q502895))
action greater
action find_tuple_counts
relation P725
type Q11424
type Q502895
action count
action filter_type
action find
entity Q374431
relation P725
type Q11424
[ANSWERS]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?g ) WHERE { ?d rdf:type ontology:Q11424 . ?n rdf:type ontology:Q502895 . ?d property:P725 ?n } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { resource:Q374431 property:P725 ?h . ?h rdf:type ontology:Q11424 } } . FILTER ( ?g > ?r ) }
The Lord of the Rings Cinderella Mr. Peabody & Sherman Captain of the Forest The Sword in the Stone Szaffi Quest for Camelot Flushed Away Peter Pan The Great Mouse Detective Aladdin Mattie the Goose-boy Snow White and the Seven Dwarfs Sleeping Beauty Beauty and the Beast Oliver & Company Fun and Fancy Free The Princess and the Goblin One Hundred and One Dalmatians Paprika Tintin and the Temple of the Sun The Black Cauldron The Hunchback of Notre Dame The Ballad of the Daltons The Adventures of Tintin Emilie Jolie Hotel Transylvania Robin Hood The Aristocats My Little Pony: The Movie The Little Mermaid Fantastic Mr. Fox Pocahontas Hotel Transylvania 2 Lady and the Tramp The Rescuers Down Under The Fox and the Hound Alice in Wonderland Bambi Tokyo Godfathers The Many Adventures of Winnie the Pooh The Jungle Book The Lion King The Rescuers Dumbo Hercules Renart the Fox
The Little Mermaid Robin Hood Hercules
action greater
action find_tuple_counts
relation voice actor
type film
type common name
action count
action filter_type
action find
entity The Tigger Movie
relation voice actor
type film
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?n ) AS ?g ) WHERE { ?d rdf:type ontology:film . ?n rdf:type ontology:common_name . ?d property:voice_actor ?n } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) WHERE { resource:The_Tigger_Movie property:voice_actor ?h . ?h rdf:type ontology:film } } . FILTER ( ?g > ?r ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q666994 Q19090
P137 P495
Q15617994
USER
Which administrative territories are the countries of origin of Robin Hood and manages PC-9 ?
AND((Q19090,P495,c(Q15617994)), (Q666994,P137,c(Q15617994)))
action filter_type
action intersection
action find
entity Q19090
relation P495
action find
entity Q666994
relation P137
type Q15617994
{'AND': [['Q19090', 'P495', {'concept': 'Q15617994'}], ['Q666994', 'P137', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { resource:Q666994 property:P137 ?z . resource:Q19090 property:P495 ?z . ?z rdf:type ontology:Q15617994 }
PC-9 Robin Hood
action filter_type
action intersection
action find
entity Robin Hood
relation country of origin
action find
entity PC-9
relation operator
type designation for an administrative territorial entity
{'AND': [['Robin Hood', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['PC-9', 'operator', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { resource:PC-9 property:operator ?z . resource:Robin_Hood property:country_of_origin ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q19090,P495,c(Q15617994)), (Q666994,P137,c(Q15617994)))
action filter_type
action intersection
action find
entity Q19090
relation P495
action find
entity Q666994
relation P137
type Q15617994
[ANSWER] is the countries of origin of Robin Hood and manages PC-9
{'AND': [['Q19090', 'P495', {'concept': 'Q15617994'}], ['Q666994', 'P137', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { resource:Q666994 property:P137 ?z . resource:Q19090 property:P495 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
United States of America is the countries of origin of Robin Hood and manages PC-9
United States of America
action filter_type
action intersection
action find
entity Robin Hood
relation country of origin
action find
entity PC-9
relation operator
type designation for an administrative territorial entity
{'AND': [['Robin Hood', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['PC-9', 'operator', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { resource:PC-9 property:operator ?z . resource:Robin_Hood property:country_of_origin ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q24636564 Q16
P530
Q1048835
USER
Does that administrative territory have diplomatic relations with Valley and Canada ?
(Q30,P530,Q24636564) (Q30,P530,Q16)
action is_in
entity Q30
action intersection
action find_reverse
entity Q24636564
relation P530
action find_reverse
entity Q16
relation P530
['Q30', 'P530', 'Q24636564'] ['Q30', 'P530', 'Q16']
ASK WHERE { resource:Q30 property:P530 resource:Q24636564 . resource:Q30 property:P530 resource:Q16 }
United States of America Valley Canada
action is_in
entity United States of America
action intersection
action find_reverse
entity Valley
relation diplomatic relation
action find_reverse
entity Canada
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Valley'] ['United States of America', 'diplomatic relation', 'Canada']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Valley . resource:United_States_of_America property:diplomatic_relation resource:Canada }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q30,P530,Q24636564) (Q30,P530,Q16)
action is_in
entity Q30
action intersection
action find_reverse
entity Q24636564
relation P530
action find_reverse
entity Q16
relation P530
[ANSWER]
['Q30', 'P530', 'Q24636564'] ['Q30', 'P530', 'Q16']
ASK WHERE { resource:Q30 property:P530 resource:Q24636564 . resource:Q30 property:P530 resource:Q16 }
NO and YES respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity Valley
relation diplomatic relation
action find_reverse
entity Canada
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Valley'] ['United States of America', 'diplomatic relation', 'Canada']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Valley . resource:United_States_of_America property:diplomatic_relation resource:Canada }
[]