Simple Question (Direct)
Simple Question
Q322565
P21
Q290
USER
What is the sex of Ian Donald ?
(Q322565,P21,c(Q290))
action filter_type
action find
entity Q322565
relation P21
type Q290
['Q322565', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q322565 property:P21 ?d }
Ian Donald
action filter_type
action find
entity Ian Donald
relation gender
type sex
['Ian Donald', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Ian_Donald property:gender ?d }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q322565,P21,c(Q290))
action filter_type
action find
entity Q322565
relation P21
type Q290
The sex of Ian Donald is the [ANSWER]
['Q322565', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q290 . resource:Q322565 property:P21 ?d }
male
The sex of Ian Donald is the male
male
action filter_type
action find
entity Ian Donald
relation gender
type sex
['Ian Donald', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:sex . resource:Ian_Donald property:gender ?d }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q322565
P69
Q3914
USER
Which school is the alma mater of that person ?
(Q6581097,P69,c(Q3914))
action filter_type
action find
entity Q322565
relation P69
type Q3914
['Q6581097', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?x WHERE { resource:Q322565 property:P69 ?x . ?x rdf:type ontology:Q3914 }
Ian Donald
action filter_type
action find
entity Ian Donald
relation educated at
type school
['male', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?x WHERE { resource:Ian_Donald property:educated_at ?x . ?x rdf:type ontology:school }
[]
school
Q5445986
SYSTEM
Fettes College
Q5445986
(Q6581097,P69,c(Q3914))
action filter_type
action find
entity Q322565
relation P69
type Q3914
[ANSWER] is the alma mater of that person
['Q6581097', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?x WHERE { resource:Q322565 property:P69 ?x . ?x rdf:type ontology:Q3914 }
Fettes College
Fettes College is the alma mater of that person
Fettes College
action filter_type
action find
entity Ian Donald
relation educated at
type school
['male', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?x WHERE { resource:Ian_Donald property:educated_at ?x . ?x rdf:type ontology:school }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q5445986 Q6513373 Q145
P17
Q15617994
USER
Is that school present in Lee County School District and United Kingdom ?
(Q5445986,P17,Q6513373) (Q5445986,P17,Q145)
action is_in
entity Q5445986
action intersection
action find_reverse
entity Q6513373
relation P17
action find_reverse
entity Q145
relation P17
['Q5445986', 'P17', 'Q6513373'] ['Q5445986', 'P17', 'Q145']
ASK WHERE { resource:Q5445986 property:P17 resource:Q6513373 . resource:Q5445986 property:P17 resource:Q145 }
Fettes College Lee County School District United Kingdom
action is_in
entity Fettes College
action intersection
action find_reverse
entity Lee County School District
relation country
action find_reverse
entity United Kingdom
relation country
['Fettes College', 'country', 'Lee County School District'] ['Fettes College', 'country', 'United Kingdom']
ASK WHERE { resource:Fettes_College property:country resource:Lee_County_School_District . resource:Fettes_College property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q5445986,P17,Q6513373) (Q5445986,P17,Q145)
action is_in
entity Q5445986
action intersection
action find_reverse
entity Q6513373
relation P17
action find_reverse
entity Q145
relation P17
[ANSWER]
['Q5445986', 'P17', 'Q6513373'] ['Q5445986', 'P17', 'Q145']
ASK WHERE { resource:Q5445986 property:P17 resource:Q6513373 . resource:Q5445986 property:P17 resource:Q145 }
NO and YES respectively
action is_in
entity Fettes College
action intersection
action find_reverse
entity Lee County School District
relation country
action find_reverse
entity United Kingdom
relation country
['Fettes College', 'country', 'Lee County School District'] ['Fettes College', 'country', 'United Kingdom']
ASK WHERE { resource:Fettes_College property:country resource:Lee_County_School_District . resource:Fettes_College property:country resource:United_Kingdom }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5445986
P1435
Q41176
USER
Which building heritage status does Fettes College have ?
(Q5445986,P1435,c(Q41176))
action filter_type
action find
entity Q5445986
relation P1435
type Q41176
['Q5445986', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?e WHERE { resource:Q5445986 property:P1435 ?e . ?e rdf:type ontology:Q41176 }
Fettes College
action filter_type
action find
entity Fettes College
relation heritage status
type building
['Fettes College', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?e WHERE { resource:Fettes_College property:heritage_status ?e . ?e rdf:type ontology:building }
[]
building
Q10729054
SYSTEM
category A listed building
Q10729054
(Q5445986,P1435,c(Q41176))
action filter_type
action find
entity Q5445986
relation P1435
type Q41176
Fettes College has a [ANSWER]
['Q5445986', 'P1435', {'concept': 'Q41176'}]
SELECT DISTINCT ?e WHERE { resource:Q5445986 property:P1435 ?e . ?e rdf:type ontology:Q41176 }
category A listed building
Fettes College has a category A listed building
category A listed building
action filter_type
action find
entity Fettes College
relation heritage status
type building
['Fettes College', 'heritage status', {'concept': 'building'}]
SELECT DISTINCT ?e WHERE { resource:Fettes_College property:heritage_status ?e . ?e rdf:type ontology:building }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q5445986
P69
Q502895
USER
How many people studied at Fettes College ?
(c(Q502895),P69,Q5445986)
action count
action filter_type
action find_reverse
entity Q5445986
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q5445986']
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ontology:Q502895 . ?t property:P69 resource:Q5445986 }
Fettes College
action count
action filter_type
action find_reverse
entity Fettes College
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Fettes College']
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ontology:common_name . ?t property:educated_at resource:Fettes_College }
[]
common name
SYSTEM
135
Q3610765 Q4708757 Q1632282 Q5492427 Q5080843 Q706470 Q5301658 Q3142235 Q433728 Q4758358 Q7945401 Q1888972 Q6229012 Q8020580 Q9545 Q7350827 Q8012241 Q5930683 Q7346753 Q7344857 Q3182811 Q1353002 Q7352894 Q5660042 Q6132894 Q6253573 Q8010766 Q5585951 Q15997650 Q11806850 Q14945741 Q7383419 Q6317897 Q333091 Q1406204 Q7290718 Q8005606 Q6246144 Q6224904 Q5644949 Q13529889 Q7668221 Q333080 Q3938466 Q3938461 Q3568942 Q4722788 Q6383991 Q14918273 Q2514411 Q4706593 Q6219288 Q2978546 Q4909084 Q5203790 Q16059792 Q6285208 Q8015019 Q7509316 Q3836510 Q7356606 Q1294022 Q1329577 Q333182 Q11259840 Q5302143 Q5543435 Q5237841 Q7023907 Q5301823 Q252566 Q6792882 Q16106961 Q16027143 Q5671912 Q14948945 Q4831429 Q5612078 Q14948959 Q5496795 Q943930 Q7369469 Q5542646 Q1349942 Q2568688 Q6990561 Q16026220 Q5485197 Q5981759 Q3434849 Q5262354 Q3101736 Q5561276 Q3133514 Q15989959 Q1049595 Q5233133 Q3017472 Q4843834 Q322565 Q6134684 Q200534 Q356499 Q260729 Q941629 Q5745709 Q6790514 Q6246330 Q338543 Q8010176 Q204078 Q4708428 Q7819653 Q1586895 Q198743 Q5536963 Q15040625 Q7327231 Q4648545 Q7052035 Q6222203 Q15990180 Q5238971 Q7417293 Q6504847 Q3078573 Q5345020 Q5294754 Q5983226 Q8014702 Q3195189 Q5728868 Q381352 Q4727278 Q5315453
(c(Q502895),P69,Q5445986)
action count
action filter_type
action find_reverse
entity Q5445986
relation P69
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P69', 'Q5445986']
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ontology:Q502895 . ?t property:P69 resource:Q5445986 }
Alexander Mackenzie Stuart, Baron Mackenzie-Stuart Alastair Montgomerie John Macnaghten Whittaker Frans ten Bos Charles McKean Cecil Reddie Douglas Jamieson, Lord Jamieson Hugh Crichton-Miller Walter Terence Stace Andrew Ramsay Don-Wauchope W. C. Sellar R. H. Bruce Lockhart John Deans Hope William Wotherspoon Tony Blair Robert Walmsley William Herbert Anderson Hugh Enes Blackmore Robert Lawrence Robert Gordon John de Chastelain William Theodore Heard Robin Young Harold Barnwell James Duff Duff John Purser William Hamilton Fyfe Gordon Waddell Arthur Benison Hubback Keith Arbuthnott, 15th Viscount of Arbuthnott Thomas Tudor Loveday Ruthven Todd Justin Melck John Simon, 1st Viscount Simon Fereydoon Batmanghelidj Ranald MacLean William Blair John MacLeod John Cameron, Lord Coulsfield Hamilton Fyfe Knox Cunningham T. E. Moir Selwyn Lloyd Robert Whigham Robert Wedderburn William Patrick Scott Alfred Hamilton Grant Keith Arbuthnott, 17th Viscount of Arbuthnott John Morrison, 2nd Viscount Dunrossil Wilfrid Normand, Baron Normand Alan Ewen Donald John Arbuthnott, 16th Viscount of Arbuthnott N. G. L. Hammond Bill Gammell D. R. Thorpe Hector Lachlan Stewart MacLean Joseph Maclay, 2nd Baron Maclay William Macpherson Sidney Rowlatt Lola Shoneyin Roderick Douglas Macdonald Edward Wadsworth William Henry Ogilvie Iain Macleod Malcolm Jardine Douglas Young George Pirie David Murray Niall Macpherson, 1st Baron Drumalbyn Douglas Monypenny Ian McKee Maurice Berkley Grenville Johnston Hugh Stewart Harry Reid William Grant, Lord Grant Aylmer Vallance William Corlett Frank Hunter Freddie Scott Tommy Armour Ross Leckie George Morton William Robert Ogilvie-Grant Donald Steel Nelson Henderson David Landale Frank Barnwell Ian Harvey Sandy Glen Derek Shiel George MacPherson Gilbert White Herbert Waddell George Denholm Roderick MacFarquhar David Durie David Bedell-Sivright George Cunningham Ian Donald James Glencairn Cunningham Tilda Swinton Michael Tippett Alan Archibald Campbell-Swinton David MacMyn Hesketh Hesketh-Prichard Matthew Fontaine Maury Meiklejohn John Macqueen Ward John Hay Beith William Greenstock Angus Deaton Alasdair Liddell Tommy Macpherson Harry Woolf, Baron Woolf David Ogilvy George Biagi Josias Cunningham Richard Lambert A. Y. Campbell Norman Cameron John Blelloch Charlton Monypenny David Reid Sandy Hodge Lawrie Hugh McGavin George Campbell Hay Edward Reid Donald MacKintosh Ian Weatherhead William Lorimer K. G. MacLeod Henry Summers Robert Alexander Rankin Alistair Elliot Dunlop McCosh Cunningham
135
action count
action filter_type
action find_reverse
entity Fettes College
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Fettes College']
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { ?t rdf:type ontology:common_name . ?t property:educated_at resource:Fettes_College }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q795988
P69
Q502895
USER
And what about University of Guelph?
(c(Q502895),P69,Q795988)
action count
action filter_type
action find_reverse
entity Q795988
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q795988']
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:P69 resource:Q795988 . ?g rdf:type ontology:Q502895 }
University of Guelph
action count
action filter_type
action find_reverse
entity University of Guelph
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'University of Guelph']
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:educated_at resource:University_of_Guelph . ?g rdf:type ontology:common_name }
[]
common name
SYSTEM
79
Q6133097 Q3350703 Q4961022 Q7345622 Q5592895 Q5584610 Q6142842 Q7609579 Q17580303 Q5592831 Q19849362 Q16202336 Q5536477 Q5289597 Q7192615 Q5300870 Q16734339 Q5232241 Q2917488 Q4823741 Q4730460 Q5234160 Q7176736 Q7173695 Q5056083 Q17386185 Q275535 Q16195982 Q1654821 Q7331385 Q6780800 Q1651643 Q7803568 Q271638 Q3313573 Q4714751 Q6352541 Q4708781 Q16146376 Q4647824 Q6258973 Q7816759 Q5372703 Q5724443 Q7436816 Q6707894 Q7096491 Q6660291 Q3022978 Q7288109 Q15499527 Q6178112 Q6304518 Q5105808 Q6707965 Q732763 Q276481 Q5628082 Q3026651 Q3294004 Q6120161 Q6142194 Q2870860 Q7309945 Q6264668 Q6377194 Q235451 Q258385 Q7346836 Q17180541 Q7634257 Q5271430 Q7668648 Q1502402 Q6154658 Q446687 Q2977215 Q16735039 Q7811767
(c(Q502895),P69,Q795988)
action count
action filter_type
action find_reverse
entity Q795988
relation P69
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P69', 'Q795988']
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:P69 resource:Q795988 . ?g rdf:type ontology:Q502895 }
James E. Fraser Olivia Chow Brendan Myers Robert Horner Graham Henderson Gord Miller James Schroder Stephen J. Tanner Jacey Murphy Graham Forsythe Jiyuan Yu Elisabeth de Mariaffi George Atkins Dolph Schluter Piers Nash Doug Rollins David Peck David Castle Stephen Hicks Kelley Aitken Allan Armitage David Giuliano Peter S. Gray Peter Donaldson Cecil Frederick Patterson Kimberly Moffit Jane Siberry Susan Dobson Marcel Kars Rick Ferraro Mary Swan Stanley Thompson Tim Grant Laura Bertram Mike Wallace Aleks Oniszczak Kalidas Shetty Alastair Summerlee Rupan Bal A. H. Brightwell John Steffler Tom McBroom Emma-Jayne Wilson Henry Kock Scott McGillivray Lyle Estill Opendra Narayan Liz Sandals D. Y. Béchard Ralph Spence Ian Murray Jennifer Beech Judy Maddren Chris Banks Lyle Vanclief Kenneth Mitchell Cassie Campbell H. B. Sharman Dicki Chhoyang Mark Bourrie Jacqueline McGlade James Robert Brown Audrey McLaughlin Reid Coolsaet John Wise Kathy Butler Vandana Shiva Roberta Bondar Robert Leigh Dom Cardillo Sue Richards Diane Deans T. Ryan Gregory Tim Bray Janis Tarchuk Jane Urquhart Claude Cormier Jordan Raycroft Toby Barrett
79
action count
action filter_type
action find_reverse
entity University of Guelph
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'University of Guelph']
SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { ?g property:educated_at resource:University_of_Guelph . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P47
Q15617994
USER
Who share the border with United States of America ?
(Q30,P47,c(Q15617994))
action filter_type
action find
entity Q30
relation P47
type Q15617994
['Q30', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q30 property:P47 ?c . ?c rdf:type ontology:Q15617994 }
United States of America
action filter_type
action find
entity United States of America
relation shares border with
type designation for an administrative territorial entity
['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:United_States_of_America property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q17 Q96
SYSTEM
Russia, Japan, Mexico
Q702 Q804 Q159 Q96 Q17 Q786 Q241 Q683 Q710 Q678 Q717 Q790
(Q30,P47,c(Q15617994))
action filter_type
action find
entity Q30
relation P47
type Q15617994
[ANSWERS] share the border with United States of America
['Q30', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q30 property:P47 ?c . ?c rdf:type ontology:Q15617994 }
Federated States of Micronesia Panama Russia Mexico Japan Dominican Republic Cuba Samoa Kiribati Tonga Venezuela Haiti
Russia, Japan and Mexico share the border with United States of America
Russia Japan Mexico
action filter_type
action find
entity United States of America
relation shares border with
type designation for an administrative territorial entity
['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:United_States_of_America property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q30
Q7275
USER
And which state?
(Q30,P47,c(Q7275))
action filter_type
action find
entity Q30
relation P47
type Q7275
['Q30', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ?h WHERE { resource:Q30 property:P47 ?h . ?h rdf:type ontology:Q7275 }
United States of America
action filter_type
action find
entity United States of America
relation shares border with
type state
['United States of America', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ?h WHERE { resource:United_States_of_America property:shares_border_with ?h . ?h rdf:type ontology:state }
[]
state
Q248452
SYSTEM
British North America
Q248452
(Q30,P47,c(Q7275))
action filter_type
action find
entity Q30
relation P47
type Q7275
[ANSWER]
['Q30', 'P47', {'concept': 'Q7275'}]
SELECT DISTINCT ?h WHERE { resource:Q30 property:P47 ?h . ?h rdf:type ontology:Q7275 }
British North America
British North America
action filter_type
action find
entity United States of America
relation shares border with
type state
['United States of America', 'shares border with', {'concept': 'state'}]
SELECT DISTINCT ?h WHERE { resource:United_States_of_America property:shares_border_with ?h . ?h rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q248452
P27
Q502895
USER
Which people are a native of that state ?
(c(Q502895),P27,Q248452)
action filter_type
action find_reverse
entity Q248452
relation P27
type Q502895
[{'concept': 'Q502895'}, 'P27', 'Q248452']
SELECT DISTINCT ?v WHERE { ?v property:P27 resource:Q248452 . ?v rdf:type ontology:Q502895 }
British North America
action filter_type
action find_reverse
entity British North America
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'British North America']
SELECT DISTINCT ?v WHERE { ?v property:country_of_citizenship resource:British_North_America . ?v rdf:type ontology:common_name }
[]
common name
Q1354988 Q19887584 Q6219302
SYSTEM
Giles Corey, William Johnston, John Archdale
Q6138174 Q6219302 Q8007329 Q19560706 Q18559878 Q7786819 Q7793295 Q8018868 Q8022841 Q5076057 Q2412821 Q18879035 Q21463386 Q6779377 Q3436274 Q27651406 Q23583962 Q24413760 Q1354988 Q21091750 Q7324104 Q20658383 Q4887243 Q19887584 Q18528394 Q22998152 Q16859390
(c(Q502895),P27,Q248452)
action filter_type
action find_reverse
entity Q248452
relation P27
type Q502895
[ANSWERS] are a native of that state
[{'concept': 'Q502895'}, 'P27', 'Q248452']
SELECT DISTINCT ?v WHERE { ?v property:P27 resource:Q248452 . ?v rdf:type ontology:Q502895 }
James Logan John Archdale William Crowne John Harvey Thomas Dale Thomas Nelson Thomas Prince William Stone Wilmot Redd Charles Calvert, 3rd Baron Baltimore Alexander McGillivray John Taylor George Mason Mary Eastey Robert Sedgwick Benjamin Smith William Clarke James Roberts Giles Corey Benjamin Booth Richard Bennett John Shepardson Benedict Arnold William Johnston Spencer Vassall Lydia Dustin John Madison
Giles Corey, William Johnston and John Archdale are a native of that state
Giles Corey William Johnston John Archdale
action filter_type
action find_reverse
entity British North America
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'British North America']
SELECT DISTINCT ?v WHERE { ?v property:country_of_citizenship resource:British_North_America . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q17
P463
Q484652 Q874405
USER
How many international organizations or social groups were Japan a member of ?
(Q17,P463,c(Q484652)) (Q17,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q17
relation P463
type Q484652
action filter_type
action find
entity Q17
relation P463
type Q874405
['Q17', 'P463', {'concept': 'Q484652'}] ['Q17', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { resource:Q17 property:P463 ?q . ?q rdf:type ontology:Q484652 } UNION { resource:Q17 property:P463 ?q . ?q rdf:type ontology:Q874405 } }
Japan
action count
action union
action filter_type
action find
entity Japan
relation member of
type international organization
action filter_type
action find
entity Japan
relation member of
type social group
['Japan', 'member of', {'concept': 'international organization'}] ['Japan', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { resource:Japan property:member_of ?q . ?q rdf:type ontology:international_organization } UNION { resource:Japan property:member_of ?q . ?q rdf:type ontology:social_group } }
[]
international organization social group
SYSTEM
6
Q19771 Q1065 Q37143 Q188822 Q782942 Q1043527
(Q17,P463,c(Q484652)) (Q17,P463,c(Q874405))
action count
action union
action filter_type
action find
entity Q17
relation P463
type Q484652
action filter_type
action find
entity Q17
relation P463
type Q874405
[ANSWER]
['Q17', 'P463', {'concept': 'Q484652'}] ['Q17', 'P463', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { resource:Q17 property:P463 ?q . ?q rdf:type ontology:Q484652 } UNION { resource:Q17 property:P463 ?q . ?q rdf:type ontology:Q874405 } }
G20 United Nations G8 Asian Development Bank Australia Group Multilateral Investment Guarantee Agency
6
action count
action union
action filter_type
action find
entity Japan
relation member of
type international organization
action filter_type
action find
entity Japan
relation member of
type social group
['Japan', 'member of', {'concept': 'international organization'}] ['Japan', 'member of', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { { resource:Japan property:member_of ?q . ?q rdf:type ontology:international_organization } UNION { resource:Japan property:member_of ?q . ?q rdf:type ontology:social_group } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q30 Q17
P530
Q15617994
USER
Which administrative territories holds diplomatic relationship with Japan and United States of America ?
AND((Q17,P530,c(Q15617994)), (Q30,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q17
relation P530
action find
entity Q30
relation P530
type Q15617994
{'AND': [['Q17', 'P530', {'concept': 'Q15617994'}], ['Q30', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { resource:Q17 property:P530 ?u . resource:Q30 property:P530 ?u . ?u rdf:type ontology:Q15617994 }
United States of America Japan
action filter_type
action intersection
action find
entity Japan
relation diplomatic relation
action find
entity United States of America
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Japan property:diplomatic_relation ?u . resource:United_States_of_America property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q38 Q159 Q801
SYSTEM
Brazil, Italy, Russia, Israel
Q155 Q38 Q159 Q801
AND((Q17,P530,c(Q15617994)), (Q30,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q17
relation P530
action find
entity Q30
relation P530
type Q15617994
And [ANSWERS] hold diplomatic relationship with Japan and United States of America
{'AND': [['Q17', 'P530', {'concept': 'Q15617994'}], ['Q30', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { resource:Q17 property:P530 ?u . resource:Q30 property:P530 ?u . ?u rdf:type ontology:Q15617994 }
Brazil Italy Russia Israel
And Brazil, Italy, Russia and Israel hold diplomatic relationship with Japan and United States of America
Brazil Italy Russia Israel
action filter_type
action intersection
action find
entity Japan
relation diplomatic relation
action find
entity United States of America
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Japan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Japan property:diplomatic_relation ?u . resource:United_States_of_America property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q155 Q38 Q159 Q801
P17
Q223557
USER
Which physical objects are located in Brazil, Italy, Russia and Israel ?
(c(Q223557),P17,Q155) (c(Q223557),P17,Q38) (c(Q223557),P17,Q159) (c(Q223557),P17,Q801)
action union
action filter_type
action find_reverse
entity Q155
relation P17
type Q223557
action filter_type
action find_reverse
entity Q38
relation P17
type Q223557
action filter_type
action find_reverse
entity Q159
relation P17
type Q223557
action filter_type
action find_reverse
entity Q801
relation P17
type Q223557
[{'concept': 'Q223557'}, 'P17', 'Q155'] [{'concept': 'Q223557'}, 'P17', 'Q38'] [{'concept': 'Q223557'}, 'P17', 'Q159'] [{'concept': 'Q223557'}, 'P17', 'Q801']
SELECT DISTINCT ?g WHERE { { ?g property:P17 resource:Q155 . ?g rdf:type ontology:Q223557 } UNION { ?g rdf:type ontology:Q223557 . ?g property:P17 resource:Q38 } }
Brazil Italy Russia Israel
action union
action filter_type
action find_reverse
entity Brazil
relation country
type physical object
action filter_type
action find_reverse
entity Italy
relation country
type physical object
action filter_type
action find_reverse
entity Russia
relation country
type physical object
action filter_type
action find_reverse
entity Israel
relation country
type physical object
[{'concept': 'physical object'}, 'country', 'Brazil'] [{'concept': 'physical object'}, 'country', 'Italy'] [{'concept': 'physical object'}, 'country', 'Russia'] [{'concept': 'physical object'}, 'country', 'Israel']
SELECT DISTINCT ?g WHERE { { ?g property:country resource:Brazil . ?g rdf:type ontology:physical_object } UNION { ?g rdf:type ontology:physical_object . ?g property:country resource:Italy } }
[]
physical object
Q2709332 Q2381669 Q946486
SYSTEM
São Luís Island, South Tyrolean Unterland, Marassi
Q2727038 Q3348678 Q9725619 Q5158612 Q2709332 Q3981016 Q7335371 Q2907507 Q3307211 Q3815770 Q629613 Q944963 Q3895389 Q1297524 Q7605143 Q9303599 Q3757657 Q3854475 Q3901928 Q7909172 Q1353670 Q6904876 Q3908802 Q7448878 Q14208866 Q7680294 Q617591 Q7413566 Q7124373 Q7912391 Q3399231 Q13100485 Q14467992 Q1952273 Q3937962 Q3909279 Q644159 Q627950 Q3908724 Q3981958 Q1123817 Q13100444 Q3625609 Q2381669 Q7419378 Q1242205 Q3936281 Q946486 Q2143713 Q5312439 Q7253240 Q12655961 Q2900252 Q2909110 Q2907364 Q658898 Q6614338 Q2911762
(c(Q223557),P17,Q155) (c(Q223557),P17,Q38) (c(Q223557),P17,Q159) (c(Q223557),P17,Q801)
action union
action filter_type
action find_reverse
entity Q155
relation P17
type Q223557
action filter_type
action find_reverse
entity Q38
relation P17
type Q223557
action filter_type
action find_reverse
entity Q159
relation P17
type Q223557
action filter_type
action find_reverse
entity Q801
relation P17
type Q223557
[ANSWERS] are located in Brazil, Italy, Russia and Israel
[{'concept': 'Q223557'}, 'P17', 'Q155'] [{'concept': 'Q223557'}, 'P17', 'Q38'] [{'concept': 'Q223557'}, 'P17', 'Q159'] [{'concept': 'Q223557'}, 'P17', 'Q801']
SELECT DISTINCT ?g WHERE { { ?g property:P17 resource:Q155 . ?g rdf:type ontology:Q223557 } UNION { ?g rdf:type ontology:Q223557 . ?g property:P17 resource:Q38 } }
Ilha de Comandatuba Penha, Santa Catarina Nelson Cancian multipurpose sports centre Conchal, São Paulo São Luís Island Taquara Rio das Pedras Boa Vista, Porto Alegre Serra do Ramalho Scioa Governorate Gallaratese Quarto Oggiaro Parco Dragoni Eggental Stazione di Milano Centrale Lago della Piastra Galla-Sidamo Governorate Shoah memorial Piane d'Archi Val d'Adige Tauferer Ahrntal Monte Retaia Porta San Marco Selvole Pozzo Baronzio Taloni Grotta di Ispinigoli San Cristoforo sul Naviglio Pagliarone Valleys of South Tyrol Portello Avedèe Asnago Multedo Riviera del Conero Port of San Benedetto del Tronto Val Badia Nasche Porta Laterina Teatro De Larderel Vallagarina Antoliva Assiano South Tyrolean Unterland Santa Croce di Roccaromana Polesine Rione Castelletto Marassi Salten-Schlern Duga-3 (western) receiver Prydniprovsky Chemical Plant radioactive dumps Grigorjevas Nitzan Bet Shirat HaYam Had Nes Ajalon Ramat Aharon Jatt
São Luís Island, South Tyrolean Unterland and Marassi are located in Brazil, Italy, Russia and Israel
São Luís Island South Tyrolean Unterland Marassi
action union
action filter_type
action find_reverse
entity Brazil
relation country
type physical object
action filter_type
action find_reverse
entity Italy
relation country
type physical object
action filter_type
action find_reverse
entity Russia
relation country
type physical object
action filter_type
action find_reverse
entity Israel
relation country
type physical object
[{'concept': 'physical object'}, 'country', 'Brazil'] [{'concept': 'physical object'}, 'country', 'Italy'] [{'concept': 'physical object'}, 'country', 'Russia'] [{'concept': 'physical object'}, 'country', 'Israel']
SELECT DISTINCT ?g WHERE { { ?g property:country resource:Brazil . ?g rdf:type ontology:physical_object } UNION { ?g rdf:type ontology:physical_object . ?g property:country resource:Italy } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P163
Q14660
USER
What is associated with Russia ?
(Q159,P163,c(Q14660))
action filter_type
action find
entity Q159
relation P163
type Q14660
['Q159', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { resource:Q159 property:P163 ?y . ?y rdf:type ontology:Q14660 }
Russia
action filter_type
action find
entity Russia
relation flag
type flag
['Russia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { resource:Russia property:flag ?y . ?y rdf:type ontology:flag }
[]
flag
Q16611
SYSTEM
flag of Russia
Q16611
(Q159,P163,c(Q14660))
action filter_type
action find
entity Q159
relation P163
type Q14660
On [ANSWER] is associated with Russia
['Q159', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { resource:Q159 property:P163 ?y . ?y rdf:type ontology:Q14660 }
flag of Russia
On flag of Russia is associated with Russia
flag of Russia
action filter_type
action find
entity Russia
relation flag
type flag
['Russia', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { resource:Russia property:flag ?y . ?y rdf:type ontology:flag }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P1001
Q56061 Q14660
USER
How many flags preside the jurisdiction over more number of administrative territories than that flag ?
(c(Q14660),P1001,c(Q56061))
action count
action greater
action find_tuple_counts
relation P1001
type Q14660
type Q56061
action count
action filter_type
action find
entity Q16611
relation P1001
type Q14660
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?v ) WHERE { ?w property:P1001 ?p . ?p rdf:type ontology:Q56061 . ?w rdf:type ontology:Q14660 } GROUP BY ?w } . FILTER ( ?v > ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { resource:Q16611 property:P1001 ?j . ?j rdf:type ontology:Q14660 } } }
action count
action greater
action find_tuple_counts
relation applies to jurisdiction
type flag
type administrative territorial entity
action count
action filter_type
action find
entity flag of Russia
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?v ) WHERE { ?w property:applies_to_jurisdiction ?p . ?p rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:flag } GROUP BY ?w } . FILTER ( ?v > ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { resource:flag_of_Russia property:applies_to_jurisdiction ?j . ?j rdf:type ontology:flag } } }
[]
administrative territorial entity flag
SYSTEM
16
Q483659 Q328889 Q600147 Q235829 Q618036 Q224972 Q241781 Q204666 Q19810326 Q659058 Q463964 Q242502 Q1414813 Q202610 Q429900 Q79198
(c(Q14660),P1001,c(Q56061))
action count
action greater
action find_tuple_counts
relation P1001
type Q14660
type Q56061
action count
action filter_type
action find
entity Q16611
relation P1001
type Q14660
[ANSWER]
[{'concept': 'Q14660'}, 'P1001', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?v ) WHERE { ?w property:P1001 ?p . ?p rdf:type ontology:Q56061 . ?w rdf:type ontology:Q14660 } GROUP BY ?w } . FILTER ( ?v > ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { resource:Q16611 property:P1001 ?j . ?j rdf:type ontology:Q14660 } } }
Flag of Singapore Flag of the Northern Mariana Islands Flag of the City of Madrid flag of Guam Flag of Toronto Flag of the Canary Islands Flag of Madeira Flag of US Virgin Islands flag of Dzisna flag of Paris Flag of Northern Ireland Flag of American Samoa Flag of New York City flag of Åland Flag of Saba Flag of Vatican City
16
action count
action greater
action find_tuple_counts
relation applies to jurisdiction
type flag
type administrative territorial entity
action count
action filter_type
action find
entity flag of Russia
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?p ) AS ?v ) WHERE { ?w property:applies_to_jurisdiction ?p . ?p rdf:type ontology:administrative_territorial_entity . ?w rdf:type ontology:flag } GROUP BY ?w } . FILTER ( ?v > ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { resource:flag_of_Russia property:applies_to_jurisdiction ?j . ?j rdf:type ontology:flag } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q159
P47
Q15617994
USER
How many administrative territories are adjacent to Russia ?
(Q159,P47,c(Q15617994))
action count
action filter_type
action find
entity Q159
relation P47
type Q15617994
['Q159', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Q159 property:P47 ?m . ?m rdf:type ontology:Q15617994 }
Russia
action count
action filter_type
action find
entity Russia
relation shares border with
type designation for an administrative territorial entity
['Russia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Russia property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
16
Q227 Q20 Q423 Q211 Q230 Q232 Q191 Q184 Q711 Q33 Q17 Q30 Q37 Q36 Q212 Q148
(Q159,P47,c(Q15617994))
action count
action filter_type
action find
entity Q159
relation P47
type Q15617994
[ANSWER]
['Q159', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Q159 property:P47 ?m . ?m rdf:type ontology:Q15617994 }
Azerbaijan Norway North Korea Latvia Georgia Kazakhstan Estonia Belarus Mongolia Finland Japan United States of America Lithuania Poland Ukraine People's Republic of China
16
action count
action filter_type
action find
entity Russia
relation shares border with
type designation for an administrative territorial entity
['Russia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Russia property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q53303
P47
Q15617994
USER
And also tell me about Paluzza?
(Q53303,P47,c(Q15617994))
action count
action filter_type
action find
entity Q53303
relation P47
type Q15617994
['Q53303', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Q53303 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Paluzza
action count
action filter_type
action find
entity Paluzza
relation shares border with
type designation for an administrative territorial entity
['Paluzza', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Paluzza property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
11
Q53240 Q53249 Q53385 Q53368 Q53306 Q53339 Q53217 Q53328 Q53262 Q667212 Q53274
(Q53303,P47,c(Q15617994))
action count
action filter_type
action find
entity Q53303
relation P47
type Q15617994
[ANSWER]
['Q53303', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Q53303 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Cercivento Comeglians Treppo Carnico Sutrio Paularo Rigolato Arta Terme Ravascletto Forni Avoltri Kötschach-Mauthen Ligosullo
11
action count
action filter_type
action find
entity Paluzza
relation shares border with
type designation for an administrative territorial entity
['Paluzza', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { resource:Paluzza property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q17402
Q15617994
USER
And also tell me about Montechiaro d'Acqui?
(Q17402,P47,c(Q15617994))
action count
action filter_type
action find
entity Q17402
relation P47
type Q15617994
['Q17402', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Q17402 property:P47 ?m . ?m rdf:type ontology:Q15617994 }
Montechiaro d'Acqui
action count
action filter_type
action find
entity Montechiaro d'Acqui
relation shares border with
type designation for an administrative territorial entity
["Montechiaro d'Acqui", 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Montechiaro_d'Acqui property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
10
(Q17402,P47,c(Q15617994))
action count
action filter_type
action find
entity Q17402
relation P47
type Q15617994
[ANSWER]
['Q17402', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Q17402 property:P47 ?m . ?m rdf:type ontology:Q15617994 }
10
action count
action filter_type
action find
entity Montechiaro d'Acqui
relation shares border with
type designation for an administrative territorial entity
["Montechiaro d'Acqui", 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { resource:Montechiaro_d'Acqui property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]