Simple Question (Direct)
Simple Question
Q4220900
P1346
Q502895
USER
Who won MTV Movie Award for Best On-Screen Duo ?
(Q4220900,P1346,c(Q502895))
action filter_type
action find
entity Q4220900
relation P1346
type Q502895
['Q4220900', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q4220900 property:P1346 ?o . ?o rdf:type ontology:Q502895 }
MTV Movie Award for Best On-Screen Duo
action filter_type
action find
entity MTV Movie Award for Best On-Screen Duo
relation winner
type common name
['MTV Movie Award for Best On-Screen Duo', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:MTV_Movie_Award_for_Best_On-Screen_Duo property:winner ?o . ?o rdf:type ontology:common_name }
[]
common name
Q4573 Q42869 Q107730
SYSTEM
Sean Connery, Nicolas Cage, Vince Vaughn
Q298658 Q185724 Q42229 Q161916 Q45229 Q39476 Q44903 Q545924 Q192165 Q232910 Q383930 Q43416 Q676094 Q213864 Q219717 Q4573 Q170587 Q107730 Q311752 Q188375 Q178166 Q36970 Q164119 Q42869 Q81328 Q189226 Q483771 Q105682 Q132952 Q19190 Q40791 Q38119 Q189351 Q44380 Q190386 Q188492 Q80938 Q271471
(Q4220900,P1346,c(Q502895))
action filter_type
action find
entity Q4220900
relation P1346
type Q502895
[ANSWERS] won MTV Movie Award for Best On-Screen Duo
['Q4220900', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q4220900 property:P1346 ?o . ?o rdf:type ontology:Q502895 }
David Spade Mike Myers Mel Gibson Owen Wilson Zac Efron Emma Watson Lindsay Lohan Dana Carvey Danny Glover Lacey Chabert Dave Franco Keanu Reeves Drew Barrymore Paul Walker Chris Tucker Sean Connery Tommy Lee Jones Vince Vaughn Chris Farley Lucy Liu Vin Diesel Jackie Chan Mark Wahlberg Nicolas Cage Harrison Ford Amanda Seyfried Elijah Wood Tom Felton Adam Sandler Rupert Grint Sandra Bullock Daniel Radcliffe Sean Astin Cameron Diaz Rachel McAdams Seth MacFarlane John Travolta Verne Troyer
Sean Connery, Nicolas Cage and Vince Vaughn won MTV Movie Award for Best On-Screen Duo
Sean Connery Nicolas Cage Vince Vaughn
action filter_type
action find
entity MTV Movie Award for Best On-Screen Duo
relation winner
type common name
['MTV Movie Award for Best On-Screen Duo', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:MTV_Movie_Award_for_Best_On-Screen_Duo property:winner ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4573 Q42869 Q107730
P162
Q838948
USER
Which works of art have been developed by Sean Connery, Nicolas Cage and Vince Vaughn ?
(c(Q838948),P162,Q4573) (c(Q838948),P162,Q42869) (c(Q838948),P162,Q107730)
action union
action filter_type
action find_reverse
entity Q4573
relation P162
type Q838948
action filter_type
action find_reverse
entity Q42869
relation P162
type Q838948
action filter_type
action find_reverse
entity Q107730
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q4573'] [{'concept': 'Q838948'}, 'P162', 'Q42869'] [{'concept': 'Q838948'}, 'P162', 'Q107730']
SELECT DISTINCT ?e WHERE { { ?e property:P162 resource:Q4573 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P162 resource:Q42869 . ?e rdf:type ontology:Q838948 } }
Sean Connery Nicolas Cage Vince Vaughn
action union
action filter_type
action find_reverse
entity Sean Connery
relation producer
type work of art
action filter_type
action find_reverse
entity Nicolas Cage
relation producer
type work of art
action filter_type
action find_reverse
entity Vince Vaughn
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Sean Connery'] [{'concept': 'work of art'}, 'producer', 'Nicolas Cage'] [{'concept': 'work of art'}, 'producer', 'Vince Vaughn']
SELECT DISTINCT ?e WHERE { { ?e property:producer resource:Sean_Connery . ?e rdf:type ontology:work_of_art } UNION { ?e property:producer resource:Nicolas_Cage . ?e rdf:type ontology:work_of_art } }
[]
work of art
Q200827 Q567577 Q315592
SYSTEM
The Wicker Man, The League of Extraordinary Gentlemen, Four Christmases
Q1632217 Q578873 Q567577 Q1140439 Q7526129 Q200827 Q591175 Q2356692 Q798737 Q308681 Q728539 Q748530 Q1103569 Q1324090 Q1212854 Q315592 Q4207359 Q8000847 Q1210206 Q2557556 Q17144582 Q833566 Q1462222
(c(Q838948),P162,Q4573) (c(Q838948),P162,Q42869) (c(Q838948),P162,Q107730)
action union
action filter_type
action find_reverse
entity Q4573
relation P162
type Q838948
action filter_type
action find_reverse
entity Q42869
relation P162
type Q838948
action filter_type
action find_reverse
entity Q107730
relation P162
type Q838948
[ANSWERS] have been developed by Sean Connery, Nicolas Cage and Vince Vaughn
[{'concept': 'Q838948'}, 'P162', 'Q4573'] [{'concept': 'Q838948'}, 'P162', 'Q42869'] [{'concept': 'Q838948'}, 'P162', 'Q107730']
SELECT DISTINCT ?e WHERE { { ?e property:P162 resource:Q4573 . ?e rdf:type ontology:Q838948 } UNION { ?e property:P162 resource:Q42869 . ?e rdf:type ontology:Q838948 } }
Medicine Man Entrapment The League of Extraordinary Gentlemen Finding Forrester Sir Billi The Wicker Man The Life of David Gale Sonny The Bad Lieutenant: Port of Call New Orleans Lord of War Next Bangkok Dangerous A Thousand Words Shadow of the Vampire Fred Claus Four Christmases The Internship Wild West Comedy Show: 30 Days & 30 Nights – Hollywood to the Heartland The Dilemma Made Term Life The Break-Up Couples Retreat
The Wicker Man, The League of Extraordinary Gentlemen and Four Christmases have been developed by Sean Connery, Nicolas Cage and Vince Vaughn
The Wicker Man The League of Extraordinary Gentlemen Four Christmases
action union
action filter_type
action find_reverse
entity Sean Connery
relation producer
type work of art
action filter_type
action find_reverse
entity Nicolas Cage
relation producer
type work of art
action filter_type
action find_reverse
entity Vince Vaughn
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Sean Connery'] [{'concept': 'work of art'}, 'producer', 'Nicolas Cage'] [{'concept': 'work of art'}, 'producer', 'Vince Vaughn']
SELECT DISTINCT ?e WHERE { { ?e property:producer resource:Sean_Connery . ?e rdf:type ontology:work_of_art } UNION { ?e property:producer resource:Nicolas_Cage . ?e rdf:type ontology:work_of_art } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4573
P22
Q502895
USER
Which person has that one as dad ?
(c(Q502895),P22,Q4573)
action filter_type
action find_reverse
entity Q4573
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q4573']
SELECT DISTINCT ?e WHERE { ?e property:P22 resource:Q4573 . ?e rdf:type ontology:Q502895 }
Sean Connery
action filter_type
action find_reverse
entity Sean Connery
relation father
type common name
[{'concept': 'common name'}, 'father', 'Sean Connery']
SELECT DISTINCT ?e WHERE { ?e property:father resource:Sean_Connery . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q4573
SYSTEM
Did you mean Sean Connery ?
Q200827 Q567577 Q315592
(c(Q502895),P22,Q200827) (c(Q502895),P22,Q567577) (c(Q502895),P22,Q315592)
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q200827'] [{'concept': 'Q502895'}, 'P22', 'Q567577'] [{'concept': 'Q502895'}, 'P22', 'Q315592']
SELECT DISTINCT ?e WHERE { ?e property:P22 resource:Q4573 . ?e rdf:type ontology:Q502895 }
The Wicker Man The League of Extraordinary Gentlemen Four Christmases
Did you mean Sean Connery ?
Sean Connery
[{'concept': 'common name'}, 'father', 'The Wicker Man'] [{'concept': 'common name'}, 'father', 'The League of Extraordinary Gentlemen'] [{'concept': 'common name'}, 'father', 'Four Christmases']
SELECT DISTINCT ?e WHERE { ?e property:father resource:Sean_Connery . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P22,Q4573)
[{'concept': 'Q502895'}, 'P22', 'Q4573']
[{'concept': 'common name'}, 'father', 'Sean Connery']
[]
Q538123
SYSTEM
Jason Connery
Q538123
(c(Q502895),P22,Q4573)
action filter_type
action find_reverse
entity Q4573
relation P22
type Q502895
[ANSWER] has that one as dad
[{'concept': 'Q502895'}, 'P22', 'Q4573']
SELECT DISTINCT ?e WHERE { ?e property:P22 resource:Q4573 . ?e rdf:type ontology:Q502895 }
Jason Connery
Jason Connery has that one as dad
Jason Connery
action filter_type
action find_reverse
entity Sean Connery
relation father
type common name
[{'concept': 'common name'}, 'father', 'Sean Connery']
SELECT DISTINCT ?e WHERE { ?e property:father resource:Sean_Connery . ?e rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q99938 Q567577
P47 P495
Q15617994
USER
Which administrative territories are the origins of The League of Extraordinary Gentlemen or share border with Civitella di Romagna ?
OR((Q567577,P495,c(Q15617994)), (Q99938,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q567577
relation P495
action find
entity Q99938
relation P47
type Q15617994
{'OR': [['Q567577', 'P495', {'concept': 'Q15617994'}], ['Q99938', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q567577 property:P495 ?n } UNION { resource:Q99938 property:P47 ?n } } . ?n rdf:type ontology:Q15617994 }
Civitella di Romagna The League of Extraordinary Gentlemen
action filter_type
action union
action find
entity The League of Extraordinary Gentlemen
relation country of origin
action find
entity Civitella di Romagna
relation shares border with
type designation for an administrative territorial entity
{'OR': [['The League of Extraordinary Gentlemen', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Civitella di Romagna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:The_League_of_Extraordinary_Gentlemen property:country_of_origin ?n } UNION { resource:Civitella_di_Romagna property:shares_border_with ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q6662 Q99955 Q99956 Q99950 Q99941 Q145 Q99945 Q30
SYSTEM
Cesena, Santa Sofia, Sarsina, Predappio, Galeata, United Kingdom, Meldola, United States of America
Q6662 Q99955 Q99956 Q99950 Q99941 Q145 Q99945 Q30
OR((Q567577,P495,c(Q15617994)), (Q99938,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q567577
relation P495
action find
entity Q99938
relation P47
type Q15617994
[ANSWERS] are the origins of The League of Extraordinary Gentlemen or share border with Civitella di Romagna
{'OR': [['Q567577', 'P495', {'concept': 'Q15617994'}], ['Q99938', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q567577 property:P495 ?n } UNION { resource:Q99938 property:P47 ?n } } . ?n rdf:type ontology:Q15617994 }
Cesena Santa Sofia Sarsina Predappio Galeata United Kingdom Meldola United States of America
Cesena, Santa Sofia, Sarsina, Predappio, Galeata, United Kingdom, Meldola and United States of America are the origins of The League of Extraordinary Gentlemen or share border with Civitella di Romagna
Cesena Santa Sofia Sarsina Predappio Galeata United Kingdom Meldola United States of America
action filter_type
action union
action find
entity The League of Extraordinary Gentlemen
relation country of origin
action find
entity Civitella di Romagna
relation shares border with
type designation for an administrative territorial entity
{'OR': [['The League of Extraordinary Gentlemen', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Civitella di Romagna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:The_League_of_Extraordinary_Gentlemen property:country_of_origin ?n } UNION { resource:Civitella_di_Romagna property:shares_border_with ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q769
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with approximately the same number of administrative territories as Grenada ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?m ) WHERE { ?o property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Q769 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?m = ?q ) }
Grenada
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?m ) WHERE { ?o property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Grenada property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?m = ?q ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with approximately the same number of administrative territories as Grenada
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?m ) WHERE { ?o property:P530 ?z . ?z rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q1048835 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Q769 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . FILTER ( ?m = ?q ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have diplomatic relationships with approximately the same number of administrative territories as Grenada
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?m ) WHERE { ?o property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) WHERE { resource:Grenada property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . FILTER ( ?m = ?q ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q16
P530
Q1048835 Q56061
USER
How many political territories or administrative territories have diplomatic relationships with Canada ?
(Q16,P530,c(Q1048835)) (Q16,P530,c(Q56061))
action count
action union
action filter_type
action find
entity Q16
relation P530
type Q1048835
action filter_type
action find
entity Q16
relation P530
type Q56061
['Q16', 'P530', {'concept': 'Q1048835'}] ['Q16', 'P530', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { resource:Q16 property:P530 ?s . ?s rdf:type ontology:Q56061 } UNION { resource:Q16 property:P530 ?s . ?s rdf:type ontology:Q1048835 } }
Canada
action count
action union
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Canada
relation diplomatic relation
type administrative territorial entity
['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Canada', 'diplomatic relation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { resource:Canada property:diplomatic_relation ?s . ?s rdf:type ontology:administrative_territorial_entity } UNION { resource:Canada property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity } }
[]
political territorial entity administrative territorial entity
SYSTEM
6
Q334 Q183 Q408 Q35 Q664 Q458
(Q16,P530,c(Q1048835)) (Q16,P530,c(Q56061))
action count
action union
action filter_type
action find
entity Q16
relation P530
type Q1048835
action filter_type
action find
entity Q16
relation P530
type Q56061
[ANSWER]
['Q16', 'P530', {'concept': 'Q1048835'}] ['Q16', 'P530', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { resource:Q16 property:P530 ?s . ?s rdf:type ontology:Q56061 } UNION { resource:Q16 property:P530 ?s . ?s rdf:type ontology:Q1048835 } }
Singapore Germany Australia Denmark New Zealand European Union
6
action count
action union
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Canada
relation diplomatic relation
type administrative territorial entity
['Canada', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Canada', 'diplomatic relation', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { resource:Canada property:diplomatic_relation ?s . ?s rdf:type ontology:administrative_territorial_entity } UNION { resource:Canada property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P112
Q43229
USER
Which organization was started by United Kingdom ?
(c(Q43229),P112,Q145)
action filter_type
action find_reverse
entity Q145
relation P112
type Q43229
[{'concept': 'Q43229'}, 'P112', 'Q145']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q43229 . ?s property:P112 resource:Q145 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'United Kingdom']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:organization . ?s property:founder resource:United_Kingdom }
[]
organization
Q7809
SYSTEM
United Nations Educational, Scientific and Cultural Organization
Q7809
(c(Q43229),P112,Q145)
action filter_type
action find_reverse
entity Q145
relation P112
type Q43229
The [ANSWER] was started by United Kingdom
[{'concept': 'Q43229'}, 'P112', 'Q145']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q43229 . ?s property:P112 resource:Q145 }
United Nations Educational, Scientific and Cultural Organization
The United Nations Educational, Scientific and Cultural Organization was started by United Kingdom
United Nations Educational, Scientific and Cultural Organization
action filter_type
action find_reverse
entity United Kingdom
relation founder
type organization
[{'concept': 'organization'}, 'founder', 'United Kingdom']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:organization . ?s property:founder resource:United_Kingdom }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7809
P276
Q811979
USER
Where is that organization situated ?
(Q7809,P276,c(Q811979))
action filter_type
action find
entity Q7809
relation P276
type Q811979
['Q7809', 'P276', {'concept': 'Q811979'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q811979 . resource:Q7809 property:P276 ?j }
United Nations Educational, Scientific and Cultural Organization
action filter_type
action find
entity United Nations Educational, Scientific and Cultural Organization
relation location
type architectural structure
['United Nations Educational, Scientific and Cultural Organization', 'location', {'concept': 'architectural structure'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:architectural_structure . resource:United_Nations_Educational,_Scientific_and_Cultural_Organization property:location ?j }
[]
architectural structure
Q3279650
SYSTEM
World Heritage Centre
Q3279650
(Q7809,P276,c(Q811979))
action filter_type
action find
entity Q7809
relation P276
type Q811979
That organization is situated in [ANSWER]
['Q7809', 'P276', {'concept': 'Q811979'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q811979 . resource:Q7809 property:P276 ?j }
World Heritage Centre
That organization is situated in World Heritage Centre
World Heritage Centre
action filter_type
action find
entity United Nations Educational, Scientific and Cultural Organization
relation location
type architectural structure
['United Nations Educational, Scientific and Cultural Organization', 'location', {'concept': 'architectural structure'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:architectural_structure . resource:United_Nations_Educational,_Scientific_and_Cultural_Organization property:location ?j }
[]