Simple Question (Direct)
Simple Question
Q2703838
P40
Q502895
USER
Which person is a child of Abdullah bin Khalifa of Zanzibar ?
(Q2703838,P40,c(Q502895))
action filter_type
action find
entity Q2703838
relation P40
type Q502895
['Q2703838', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q2703838 property:P40 ?g }
Abdullah bin Khalifa of Zanzibar
action filter_type
action find
entity Abdullah bin Khalifa of Zanzibar
relation child
type common name
['Abdullah bin Khalifa of Zanzibar', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Abdullah_bin_Khalifa_of_Zanzibar property:child ?g }
[]
common name
Q2029666
SYSTEM
Jamshid bin Abdullah of Zanzibar
Q2029666
(Q2703838,P40,c(Q502895))
action filter_type
action find
entity Q2703838
relation P40
type Q502895
[ANSWER] is a child of Abdullah bin Khalifa of Zanzibar
['Q2703838', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q2703838 property:P40 ?g }
Jamshid bin Abdullah of Zanzibar
Jamshid bin Abdullah of Zanzibar is a child of Abdullah bin Khalifa of Zanzibar
Jamshid bin Abdullah of Zanzibar
action filter_type
action find
entity Abdullah bin Khalifa of Zanzibar
relation child
type common name
['Abdullah bin Khalifa of Zanzibar', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:Abdullah_bin_Khalifa_of_Zanzibar property:child ?g }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2029666 Q2745454
P40
Q502895
USER
How many people have Jamshid bin Abdullah of Zanzibar or 'Izz al-Dawla as a child ?
(c(Q502895),P40,Q2029666) (c(Q502895),P40,Q2745454)
action count
action union
action filter_type
action find_reverse
entity Q2029666
relation P40
type Q502895
action filter_type
action find_reverse
entity Q2745454
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q2029666'] [{'concept': 'Q502895'}, 'P40', 'Q2745454']
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:P40 ?x . VALUES ( ?x ) { ( resource:Q2029666 ) ( resource:Q2745454 ) } }
Jamshid bin Abdullah of Zanzibar 'Izz al-Dawla
action count
action union
action filter_type
action find_reverse
entity Jamshid bin Abdullah of Zanzibar
relation child
type common name
action filter_type
action find_reverse
entity 'Izz al-Dawla
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jamshid bin Abdullah of Zanzibar'] [{'concept': 'common name'}, 'child', "'Izz al-Dawla"]
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:child ?x . VALUES ( ?x ) { ( resource:Jamshid_bin_Abdullah_of_Zanzibar ) ( resource:'Izz_al-Dawla ) } }
[]
common name
SYSTEM
2
Q2745237 Q2703838
(c(Q502895),P40,Q2029666) (c(Q502895),P40,Q2745454)
action count
action union
action filter_type
action find_reverse
entity Q2029666
relation P40
type Q502895
action filter_type
action find_reverse
entity Q2745454
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q2029666'] [{'concept': 'Q502895'}, 'P40', 'Q2745454']
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:P40 ?x . VALUES ( ?x ) { ( resource:Q2029666 ) ( resource:Q2745454 ) } }
Mu'izz al-Dawla Abdullah bin Khalifa of Zanzibar
2
action count
action union
action filter_type
action find_reverse
entity Jamshid bin Abdullah of Zanzibar
relation child
type common name
action filter_type
action find_reverse
entity 'Izz al-Dawla
relation child
type common name
[{'concept': 'common name'}, 'child', 'Jamshid bin Abdullah of Zanzibar'] [{'concept': 'common name'}, 'child', "'Izz al-Dawla"]
SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:child ?x . VALUES ( ?x ) { ( resource:Jamshid_bin_Abdullah_of_Zanzibar ) ( resource:'Izz_al-Dawla ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18389437 Q2745454
P27 P495
Q15617994
USER
Which administrative territories are the native countriesof 'Izz al-Dawla or are the origins of Prarthana ?
OR((Q2745454,P27,c(Q15617994)), (Q18389437,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q2745454
relation P27
action find
entity Q18389437
relation P495
type Q15617994
{'OR': [['Q2745454', 'P27', {'concept': 'Q15617994'}], ['Q18389437', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . { { resource:Q18389437 property:P495 ?w } UNION { resource:Q2745454 property:P27 ?w } } }
Prarthana 'Izz al-Dawla
action filter_type
action union
action find
entity 'Izz al-Dawla
relation country of citizenship
action find
entity Prarthana
relation country of origin
type designation for an administrative territorial entity
{'OR': [["'Izz al-Dawla", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Prarthana', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Prarthana property:country_of_origin ?w } UNION { resource:'Izz_al-Dawla property:country_of_citizenship ?w } } }
[]
designation for an administrative territorial entity
Q794 Q668
SYSTEM
Iran, India
Q794 Q668
OR((Q2745454,P27,c(Q15617994)), (Q18389437,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q2745454
relation P27
action find
entity Q18389437
relation P495
type Q15617994
[ANSWERS] are the native countriesof 'Izz al-Dawla or are the origins of Prarthana
{'OR': [['Q2745454', 'P27', {'concept': 'Q15617994'}], ['Q18389437', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q15617994 . { { resource:Q18389437 property:P495 ?w } UNION { resource:Q2745454 property:P27 ?w } } }
Iran India
Iran and India are the native countriesof 'Izz al-Dawla or are the origins of Prarthana
Iran India
action filter_type
action union
action find
entity 'Izz al-Dawla
relation country of citizenship
action find
entity Prarthana
relation country of origin
type designation for an administrative territorial entity
{'OR': [["'Izz al-Dawla", 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Prarthana', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Prarthana property:country_of_origin ?w } UNION { resource:'Izz_al-Dawla property:country_of_citizenship ?w } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P17
Q483110 Q12973014
USER
How many stadia and sports teams are located in that administrative territory ?
(c(Q483110),P17,Q794) (c(Q12973014),P17,Q794) (c(Q483110),P17,Q794) (c(Q12973014),P17,Q794) (c(Q483110),P17,Q668) (c(Q12973014),P17,Q668)
[{'concept': 'Q483110'}, 'P17', 'Q794'] [{'concept': 'Q12973014'}, 'P17', 'Q794'] [{'concept': 'Q483110'}, 'P17', 'Q794'] [{'concept': 'Q12973014'}, 'P17', 'Q794'] [{'concept': 'Q483110'}, 'P17', 'Q668'] [{'concept': 'Q12973014'}, 'P17', 'Q668']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q17715246 } UNION { ?y property:Q6256 resource:Q17715246 } UNION { ?z property:Q6256 resource:Q17715246 } UNION { ?y property:Q6256 resource:Q17715246 } UNION { ?z property:Q6256 resource:Q1488929 } UNION { ?y property:Q6256 resource:Q1488929 } } . ?z rdf:type ontology:Q483110 . ?y rdf:type ontology:Q12973014 }
[{'concept': 'stadium'}, 'country', 'Iran'] [{'concept': 'sports team'}, 'country', 'Iran'] [{'concept': 'stadium'}, 'country', 'Iran'] [{'concept': 'sports team'}, 'country', 'Iran'] [{'concept': 'stadium'}, 'country', 'India'] [{'concept': 'sports team'}, 'country', 'India']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:country resource:Iran } UNION { ?y property:country resource:Iran } UNION { ?z property:country resource:Iran } UNION { ?y property:country resource:Iran } UNION { ?z property:country resource:India } UNION { ?y property:country resource:India } } . ?z rdf:type ontology:stadium . ?y rdf:type ontology:sports_team }
[]
stadium sports team
Quantitative|Count|Mult. entity type|Clarification
Q668
SYSTEM
Did you mean India ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q17715246 } UNION { ?y property:Q6256 resource:Q17715246 } UNION { ?z property:Q6256 resource:Q17715246 } UNION { ?y property:Q6256 resource:Q17715246 } UNION { ?z property:Q6256 resource:Q1488929 } UNION { ?y property:Q6256 resource:Q1488929 } } . ?z rdf:type ontology:Q483110 . ?y rdf:type ontology:Q12973014 }
Did you mean India ?
India
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:country resource:Iran } UNION { ?y property:country resource:Iran } UNION { ?z property:country resource:Iran } UNION { ?y property:country resource:Iran } UNION { ?z property:country resource:India } UNION { ?y property:country resource:India } } . ?z rdf:type ontology:stadium . ?y rdf:type ontology:sports_team }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Iran. Could you tell me the answer for that?
(c(Q483110),P17,Q794) (c(Q12973014),P17,Q794) (c(Q483110),P17,Q794) (c(Q12973014),P17,Q794) (c(Q483110),P17,Q668) (c(Q12973014),P17,Q668)
Q794
[{'concept': 'Q483110'}, 'P17', 'Q794'] [{'concept': 'Q12973014'}, 'P17', 'Q794'] [{'concept': 'Q483110'}, 'P17', 'Q794'] [{'concept': 'Q12973014'}, 'P17', 'Q794'] [{'concept': 'Q483110'}, 'P17', 'Q668'] [{'concept': 'Q12973014'}, 'P17', 'Q668']
[{'concept': 'stadium'}, 'country', 'Iran'] [{'concept': 'sports team'}, 'country', 'Iran'] [{'concept': 'stadium'}, 'country', 'Iran'] [{'concept': 'sports team'}, 'country', 'Iran'] [{'concept': 'stadium'}, 'country', 'India'] [{'concept': 'sports team'}, 'country', 'India']
[]
SYSTEM
3 stadia and 3 sports teams
Q18074277 Q20988016 Q653535 Q1435981 Q3589806 Q5931161
(c(Q483110),P17,Q794) (c(Q12973014),P17,Q794) (c(Q483110),P17,Q794) (c(Q12973014),P17,Q794) (c(Q483110),P17,Q668) (c(Q12973014),P17,Q668)
[ANSWER]
[{'concept': 'Q483110'}, 'P17', 'Q794'] [{'concept': 'Q12973014'}, 'P17', 'Q794'] [{'concept': 'Q483110'}, 'P17', 'Q794'] [{'concept': 'Q12973014'}, 'P17', 'Q794'] [{'concept': 'Q483110'}, 'P17', 'Q668'] [{'concept': 'Q12973014'}, 'P17', 'Q668']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:Q6256 resource:Q17715246 } UNION { ?y property:Q6256 resource:Q17715246 } UNION { ?z property:Q6256 resource:Q17715246 } UNION { ?y property:Q6256 resource:Q17715246 } UNION { ?z property:Q6256 resource:Q1488929 } UNION { ?y property:Q6256 resource:Q1488929 } } . ?z rdf:type ontology:Q483110 . ?y rdf:type ontology:Q12973014 }
Tehran XI Tractor Sazi F.C. Academy Azadi Stadium Foolad Shahr Stadium Iran national beach soccer team Naghsh-e-Jahan Stadium
3 stadia and 3 sports teams
[{'concept': 'stadium'}, 'country', 'Iran'] [{'concept': 'sports team'}, 'country', 'Iran'] [{'concept': 'stadium'}, 'country', 'Iran'] [{'concept': 'sports team'}, 'country', 'Iran'] [{'concept': 'stadium'}, 'country', 'India'] [{'concept': 'sports team'}, 'country', 'India']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:country resource:Iran } UNION { ?y property:country resource:Iran } UNION { ?z property:country resource:Iran } UNION { ?y property:country resource:Iran } UNION { ?z property:country resource:India } UNION { ?y property:country resource:India } } . ?z rdf:type ontology:stadium . ?y rdf:type ontology:sports_team }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?a ) WHERE { ?e property:P530 ?s . ?e rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?a = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?a ) WHERE { ?e property:diplomatic_relation ?s . ?e rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?a = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
Q1000 Q769 Q778
SYSTEM
Gabon, Grenada, The Bahamas
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWERS] have diplomatic relations with exactly 1 administrative territory
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?a ) WHERE { ?e property:P530 ?s . ?e rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 } GROUP BY ?e } . FILTER ( ?a = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
Gabon, Grenada and The Bahamas have diplomatic relations with exactly 1 administrative territory
Gabon Grenada The Bahamas
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?a ) WHERE { ?e property:diplomatic_relation ?s . ?e rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?a = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q778
P27
Q502895
USER
How many people are a citizen of The Bahamas ?
(c(Q502895),P27,Q778)
action count
action filter_type
action find_reverse
entity Q778
relation P27
type Q502895
[{'concept': 'Q502895'}, 'P27', 'Q778']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:P27 resource:Q778 . ?q rdf:type ontology:Q502895 }
The Bahamas
action count
action filter_type
action find_reverse
entity The Bahamas
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'The Bahamas']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:country_of_citizenship resource:The_Bahamas . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
195
Q5112703 Q6965779 Q5214861 Q920953 Q2900832 Q570905 Q16185572 Q16150644 Q1783867 Q3481294 Q4444735 Q1101260 Q7034969 Q2626995 Q5576474 Q23419253 Q194716 Q17612150 Q4962464 Q7105259 Q3807726 Q2048332 Q2566308 Q1292167 Q620230 Q19663167 Q1897710 Q3544472 Q7803132 Q18421931 Q7183082 Q317664 Q4717925 Q17326341 Q3805732 Q14191235 Q4721501 Q13503552 Q2324896 Q3177377 Q2306373 Q461950 Q3870006 Q27182430 Q19955988 Q16612258 Q963990 Q3706354 Q6369207 Q7702566 Q7384168 Q1389956 Q14471871 Q7920200 Q503420 Q3420920 Q240686 Q7203770 Q5386576 Q6287116 Q4829579 Q457465 Q5024455 Q237339 Q881247 Q7041754 Q236455 Q6098173 Q15634316 Q462171 Q5366052 Q16222003 Q2454761 Q3067997 Q368389 Q7384427 Q2064259 Q250149 Q6451510 Q2846758 Q7331280 Q1355907 Q5340120 Q7541055 Q16217502 Q1849724 Q766784 Q458096 Q4376482 Q175892 Q6146463 Q5162049 Q716418 Q1112549 Q3481592 Q335333 Q3080073 Q3236731 Q21916820 Q5321805 Q5983072 Q291927 Q2337274 Q6355415 Q58246 Q552864 Q462073 Q4954898 Q774439 Q16196459 Q1258816 Q5400927 Q3783276 Q2278421 Q7331452 Q5317988 Q931496 Q17497047 Q20641094 Q945343 Q3723770 Q5528099 Q7982446 Q7500399 Q534862 Q27182431 Q27182434 Q27182437 Q7350198 Q153289 Q5108379 Q16198807 Q5080755 Q267920 Q6181607 Q3664230 Q7612755 Q314573 Q16240193 Q1356341 Q2853426 Q4685065 Q6214598 Q6778468 Q5368170 Q4867201 Q5181034 Q5256565 Q4754867 Q241067 Q7169784 Q6460932 Q21857342 Q7373286 Q268860 Q1843332 Q7299289 Q5186278 Q3638280 Q6274563 Q287956 Q18685640 Q5458800 Q57705 Q3618886 Q7494091 Q5256330 Q15939165 Q15959144 Q11753138 Q2943689 Q2614145 Q16019330 Q5318039 Q5318155 Q7343921 Q492872 Q27182181 Q7167446 Q526486 Q16851897 Q24572395 Q1638658 Q709125 Q6006700 Q3370671 Q1966796 Q3182925 Q3651345 Q3538583 Q7970202 Q7143969 Q706814 Q4026423 Q7365824
(c(Q502895),P27,Q778)
action count
action filter_type
action find_reverse
entity Q778
relation P27
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P27', 'Q778']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:P27 resource:Q778 . ?q rdf:type ontology:Q502895 }
Christopher Larson Narendra Ekanayake Dana Veth Lynden Pindling Bianca Stuart Arianna Vanderpool-Wallace Mike Sands Craig Symonette Henry Milton Taylor Shamar Sands Raynaldo Sturrup Clifford Darling Nikia Deveaux Magnum Rolle Godfrey Kelly Pedrya Seymour Demetrius Pinder Laurence Burnside Brettina Orville Turnquest Jeanene Fox Paul Adderley Mychal Thompson Troy McIntosh Tureano Johnson Buddy Hield Milo Butler Nesley Jean Tim Barrett Geoffery Burnside Philip "Brave" Davis Hubert Ingraham Alex Vanderpool Marguerite Pindling Jackner Louis Shavez Hart Alexis Nihon, Jr. Allan Murray Jackie Edwards Jermain Mackey Aaron Cleare Anthonique Strachan Nakera Simms P. Ball Steven Gardiner Tynia Gaither Roger Smith Dexter Cambridge Kareem Mortimer Mackenson Altidor Ryan Ingraham Timothy Munnings Jeffery Gibson Venris Bennett Andretti Bain Raymond Higgs Chris Brown Pleasant Bridgewater Eric Gibson Joseph Spence Avvy Carl Oliver Calvin Lockhart Debbie Ferguson-McKenzie Blake Alphonso Higgs Nivea Smith Tonique Williams-Darling Ivanique Kemp Stephen Wray Derrick Atkins Ellison Greenslade Nicholas Rees Dominic Demeritte Michael Bethel Elisha Obed Ryan Pinder Roland Theodore Symonette Christine Amertil Kyle Williams Andrew Tynes Rick Carey Trevor Barry Edner Cherry Sloan Farrington Christopher Murray O. Tommy Turnquest Frank Rutherford Leevan Sands Cynthia A. Pratt Arthur Foulkes Jamial Rolle Connor Sheehan Michael Mathieu Durward Knowles Shaunae Miller Mark Knowles Laverne Eve Lesly St. Fleur Debbie Greene E. Clement Bethel Ian Thompson Sheniqua Ferguson Tamicka Clarke Kamal Degregory Brent Symonette Devin Mullings Eldece Clarke-Lewis Bradley Cooper Ramon Miller Jerome Fitzgerald Drexel Gomez Estelle Evans Happy Hall Sherman Williams Rick Hayward Dwayne Forbes Shinji Takahira Alonzo Russell Kristoff Wood Dennis Darling Elvis Rolle Gavin Christie Wendell Lawrence Shonel Ferguson Exuma I. Davis K. Parker J. Briers Robert Symonette Tom Robinson Chris Vythoulkas Daron Beneby Charles Maynard Savatheda Fynes Jeremy Knowles Celeste Marshall Steve Hanna Donald Thomas Angelique Sabrina Mark Merklein Antoan Richardson Adrian Griffith Joey Wells Marvin Rolle Elvis Burrows Basil Kelly Craig Hepburn Denair Mitchell Andre Rodgers Chandra Sturrup Perry Gomez LaToy Williams Greg Rolle Roy Ramsay Pauline Davis-Thompson Shandria Brown Raymorn Sturrup Cristian YoungMiller Bennet Davis Jonathan Sykes Ivy Dumont Kevin Davies Fletcher Lewis Perry Christie Anton Sealey Shemord Thompson Demont Mitchell Joie Summers André Toussaint Latario Collie-Minns Cecil Cooke Gerald Cash William Cartwright Dwayne Whylly Dwight Ferguson Robert Eardley Andrae Williams D. Ball Percy Knowles Troy Kemp David Kelly Emily Morley Ian Lockhart Arthur Dion Hanna Wesley Neymour Trevorvano Mackey Nathaniel McKinney Johnny Kemp Cameron Hepple Trevor Harvey Warren Fraser Pat Rolle Avard Moncur Osbourne Moxey Ronnie Butler
195
action count
action filter_type
action find_reverse
entity The Bahamas
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'The Bahamas']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:country_of_citizenship resource:The_Bahamas . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q778
P915
Q838948
USER
What were filmed at The Bahamas ?
(c(Q838948),P915,Q778)
action filter_type
action find_reverse
entity Q778
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q778']
SELECT DISTINCT ?u WHERE { ?u property:P915 resource:Q778 . ?u rdf:type ontology:Q838948 }
The Bahamas
action filter_type
action find_reverse
entity The Bahamas
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'The Bahamas']
SELECT DISTINCT ?u WHERE { ?u property:filming_location resource:The_Bahamas . ?u rdf:type ontology:work_of_art }
[]
work of art
Q1002100 Q151904 Q320423
SYSTEM
Miracle at St. Anna, Casino Royale, The Spy Who Loved Me
Q1130297 Q197011 Q7771537 Q54274 Q107724 Q831800 Q320423 Q692592 Q332330 Q794151 Q212145 Q7726585 Q1305119 Q1199839 Q1156953 Q151904 Q1002100 Q389151 Q1125888 Q161087 Q550581 Q1219423 Q463832 Q1131815 Q1428947 Q4842321 Q945906 Q517239 Q1201227 Q1105463 Q64110 Q180279 Q1127184 Q5457171 Q46717 Q107761
(c(Q838948),P915,Q778)
action filter_type
action find_reverse
entity Q778
relation P915
type Q838948
Miracle at St. Anna, Casino Royale and The Spy Who loved Me were filmed at The Bahamas
[{'concept': 'Q838948'}, 'P915', 'Q778']
SELECT DISTINCT ?u WHERE { ?u property:P915 resource:Q778 . ?u rdf:type ontology:Q838948 }
Into the Blue Zeus and Roxanne The Uninvited Guest Pirates of the Caribbean: At World's End Thunderball Speed 2: Cruise Control The Spy Who Loved Me Survival Island For Your Eyes Only Open Water The World Is Not Enough The Code Conspiracy Fool's Gold Jaws: The Revenge My Father the Hero Casino Royale Miracle at St. Anna After the Sunset The Day of the Dolphin Pirates of the Caribbean: Dead Man's Chest Spy Kids Lovers Like Us The Insider Help! Flipper Bahama Passage Flipper's New Adventure The Big Blue Holiday in the Sun Cocoon 20,000 Leagues Under the Sea Never Say Never Again Splash Flame of the Islands Pirates of the Caribbean: The Curse of the Black Pearl You Only Live Twice
Miracle at St. Anna, Casino Royale and The Spy Who loved Me were filmed at The Bahamas
Miracle at St. Anna Casino Royale The Spy Who Loved Me
action filter_type
action find_reverse
entity The Bahamas
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'The Bahamas']
SELECT DISTINCT ?u WHERE { ?u property:filming_location resource:The_Bahamas . ?u rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q151904
P1040
Q502895
USER
Who is the editor of that work of art ?
(Q151904,P1040,c(Q502895))
action filter_type
action find
entity Q151904
relation P1040
type Q502895
['Q151904', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q151904 property:P1040 ?y . ?y rdf:type ontology:Q502895 }
Casino Royale
action filter_type
action find
entity Casino Royale
relation film editor
type common name
['Casino Royale', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Casino_Royale property:film_editor ?y . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1002100
SYSTEM
Did you mean Miracle at St. Anna ?
Q1002100 Q151904 Q320423
(Q1002100,P1040,c(Q502895)) (Q151904,P1040,c(Q502895)) (Q320423,P1040,c(Q502895))
[ANSWER]
['Q1002100', 'P1040', {'concept': 'Q502895'}] ['Q151904', 'P1040', {'concept': 'Q502895'}] ['Q320423', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q151904 property:P1040 ?y . ?y rdf:type ontology:Q502895 }
Miracle at St. Anna Casino Royale The Spy Who Loved Me
Did you mean Miracle at St. Anna ?
Miracle at St. Anna
['Miracle at St. Anna', 'film editor', {'concept': 'common name'}] ['Casino Royale', 'film editor', {'concept': 'common name'}] ['The Spy Who Loved Me', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Casino_Royale property:film_editor ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Casino Royale. Could you tell me the answer for that?
(Q151904,P1040,c(Q502895))
Q151904
['Q151904', 'P1040', {'concept': 'Q502895'}]
['Casino Royale', 'film editor', {'concept': 'common name'}]
[]
Q1715774
SYSTEM
Stuart Baird
Q1715774
(Q151904,P1040,c(Q502895))
action filter_type
action find
entity Q151904
relation P1040
type Q502895
The editor of that work of art is John [ANSWER]
['Q151904', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q151904 property:P1040 ?y . ?y rdf:type ontology:Q502895 }
Stuart Baird
The editor of that work of art is John Stuart Baird
Stuart Baird
action filter_type
action find
entity Casino Royale
relation film editor
type common name
['Casino Royale', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Casino_Royale property:film_editor ?y . ?y rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1715774 Q74636
P57
Q838948
USER
Is that person a director of Whiteout ?
(Q74636,P57,Q1715774)
action is_in
entity Q1715774
action find
entity Q74636
relation P57
['Q74636', 'P57', 'Q1715774']
ASK WHERE { resource:Q74636 property:P57 resource:Q1715774 }
Stuart Baird Whiteout
action is_in
entity Stuart Baird
action find
entity Whiteout
relation director
['Whiteout', 'director', 'Stuart Baird']
ASK WHERE { resource:Whiteout property:director resource:Stuart_Baird }
[]
work of art
SYSTEM
YES
(Q74636,P57,Q1715774)
action is_in
entity Q1715774
action find
entity Q74636
relation P57
[ANSWER]
['Q74636', 'P57', 'Q1715774']
ASK WHERE { resource:Q74636 property:P57 resource:Q1715774 }
Yes
action is_in
entity Stuart Baird
action find
entity Whiteout
relation director
['Whiteout', 'director', 'Stuart Baird']
ASK WHERE { resource:Whiteout property:director resource:Stuart_Baird }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2911095 Q151904
P1441
Q6619679
USER
Which fictional humanoids are seen in Casino Royale or G.I. Joe: A Real American Hero ?
OR((c(Q6619679),P1441,Q151904), (c(Q6619679),P1441,Q2911095))
action filter_type
action union
action find_reverse
entity Q151904
relation P1441
action find_reverse
entity Q2911095
relation P1441
type Q6619679
{'OR': [[{'concept': 'Q6619679'}, 'P1441', 'Q151904'], [{'concept': 'Q6619679'}, 'P1441', 'Q2911095']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P1441 resource:Q151904 } UNION { ?l property:P1441 resource:Q2911095 } } . ?l rdf:type ontology:Q6619679 }
G.I. Joe: A Real American Hero Casino Royale
action filter_type
action union
action find_reverse
entity Casino Royale
relation present in work
action find_reverse
entity G.I. Joe: A Real American Hero
relation present in work
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'present in work', 'Casino Royale'], [{'concept': 'fictional humanoid'}, 'present in work', 'G.I. Joe: A Real American Hero']]}
SELECT DISTINCT ?l WHERE { { { ?l property:present_in_work resource:Casino_Royale } UNION { ?l property:present_in_work resource:G.I._Joe:_A_Real_American_Hero } } . ?l rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q6944060 Q7302741 Q2136439 Q246154 Q7256193 Q1959803 Q2608715 Q7597277 Q5595087 Q7605809
SYSTEM
Some of them are Mutt, Recondo, Le Chiffre, M, Psyche-Out, Steven Obanno, Vesper Lynd, Stalker, Grand Slam, Steeler
Q7826729 Q5183301 Q6202837 Q1779543 Q8000527 Q17090144 Q7853291 Q2023720 Q17110130 Q7597277 Q4875716 Q7501541 Q6470270 Q16952920 Q2136439 Q5168827 Q6673130 Q5531983 Q2089037 Q2608715 Q4928630 Q16950764 Q17031202 Q7111857 Q7577842 Q7256193 Q5130110 Q7498132 Q246154 Q6822552 Q5182184 Q6944060 Q5196932 Q2764691 Q7605809 Q6355326 Q4007643 Q5115884 Q7339363 Q5179157 Q4353443 Q17091668 Q6694746 Q5287357 Q5250309 Q5451822 Q2533047 Q4353460 Q7843906 Q6692711 Q1959803 Q5003582 Q7540816 Q3426611 Q5265313 Q8066354 Q17053513 Q7335492 Q5595087 Q4859534 Q7499934 Q2009573 Q5457496 Q5136719 Q6818251 Q4959427 Q7354251 Q7302741
OR((c(Q6619679),P1441,Q151904), (c(Q6619679),P1441,Q2911095))
action filter_type
action union
action find_reverse
entity Q151904
relation P1441
action find_reverse
entity Q2911095
relation P1441
type Q6619679
[ANSWERS] are seen in Casino Royale or G.I. Joe: A Real American Hero
{'OR': [[{'concept': 'Q6619679'}, 'P1441', 'Q151904'], [{'concept': 'Q6619679'}, 'P1441', 'Q2911095']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P1441 resource:Q151904 } UNION { ?l property:P1441 resource:Q2911095 } } . ?l rdf:type ontology:Q6619679 }
Torpedo Crazylegs Jinx Felix Leiter Wild Bill Mainframe Tunnel Rat Alexander Dimitrios Wet Suit Stalker Beach Head Short-Fuze Lady Jaye Cross-Country Le Chiffre Copperhead Long Range General Joseph Colton Solange Vesper Lynd Blowtorch Bazooka Leatherneck Outback Spirit Psyche-Out Claymore Shipwreck M Metal-Head Crankcase Mutt Cutter Adolph Gettler Steeler Kamakura Valenka Chuckles Road Pig Cover Girl Scarlett Snow Job Lt. Falcon Doctor Mindbender Deep Six Firefly Mr. White Roadblock Tripwire Low-Light Steven Obanno Buzzer Slip Stream René Mathis Destro Zap Quick Kick Rip Cord Grand Slam Barbecue Shockwave James Bond Flash Clutch Mercer Breaker Rock 'n Roll Recondo
Mutt, Recondo, Le Chiffre, M, Psyche-Out, Steven Obanno, Vesper Lynd, Stalker, Grand Slam and Steeler are seen in Casino Royale or G.I. Joe: A Real American Hero
Mutt Recondo Le Chiffre M Psyche-Out Steven Obanno Vesper Lynd Stalker Grand Slam Steeler
action filter_type
action union
action find_reverse
entity Casino Royale
relation present in work
action find_reverse
entity G.I. Joe: A Real American Hero
relation present in work
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'present in work', 'Casino Royale'], [{'concept': 'fictional humanoid'}, 'present in work', 'G.I. Joe: A Real American Hero']]}
SELECT DISTINCT ?l WHERE { { { ?l property:present_in_work resource:Casino_Royale } UNION { ?l property:present_in_work resource:G.I._Joe:_A_Real_American_Hero } } . ?l rdf:type ontology:fictional_humanoid }
[]