Simple Question (Direct)
Simple Question
Q11365572
P734
Q82799
USER
Who is associated with Yōichirō Nakamura ?
(Q11365572,P734,c(Q82799))
action filter_type
action find
entity Q11365572
relation P734
type Q82799
['Q11365572', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q11365572 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Yōichirō Nakamura
action filter_type
action find
entity Yōichirō Nakamura
relation family name
type name
['Yōichirō Nakamura', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Yōichirō_Nakamura property:family_name ?o . ?o rdf:type ontology:name }
[]
name
Q16877755
SYSTEM
Nakamura
Q16877755
(Q11365572,P734,c(Q82799))
action filter_type
action find
entity Q11365572
relation P734
type Q82799
[ANSWER] is associated with Yōichirō [ANSWER]
['Q11365572', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q11365572 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Nakamura
Nakamura is associated with Yōichirō Nakamura
Nakamura
action filter_type
action find
entity Yōichirō Nakamura
relation family name
type name
['Yōichirō Nakamura', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Yōichirō_Nakamura property:family_name ?o . ?o rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11365572
P102
Q7210356
USER
Which party does Yōichirō Nakamura belong to ?
(Q11365572,P102,c(Q7210356))
action filter_type
action find
entity Q11365572
relation P102
type Q7210356
['Q11365572', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q11365572 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Yōichirō Nakamura
action filter_type
action find
entity Yōichirō Nakamura
relation member of political party
type political organization
['Yōichirō Nakamura', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Yōichirō_Nakamura property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
political organization
Q232595
SYSTEM
Liberal Democratic Party
Q232595
(Q11365572,P102,c(Q7210356))
action filter_type
action find
entity Q11365572
relation P102
type Q7210356
Yōichirō Nakamura belongs to [ANSWER]
['Q11365572', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q11365572 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Liberal Democratic Party
Yōichirō Nakamura belongs to Liberal Democratic Party
Liberal Democratic Party
action filter_type
action find
entity Yōichirō Nakamura
relation member of political party
type political organization
['Yōichirō Nakamura', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Yōichirō_Nakamura property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11365572
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q232595,P27,c(Q15617994))
action filter_type
action find
entity Q11365572
relation P27
type Q15617994
['Q232595', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q11365572 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Yōichirō Nakamura
action filter_type
action find
entity Yōichirō Nakamura
relation country of citizenship
type designation for an administrative territorial entity
['Liberal Democratic Party', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Yōichirō_Nakamura property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q232595,P27,c(Q15617994))
action filter_type
action find
entity Q11365572
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q232595', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q11365572 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Japan
The Japan is that person a civilian of
Japan
action filter_type
action find
entity Yōichirō Nakamura
relation country of citizenship
type designation for an administrative territorial entity
['Liberal Democratic Party', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Yōichirō_Nakamura property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q874405 Q9332 Q82799
USER
How many names are parts of atmost 1 social groups and behaviors ?
(c(Q82799),P361,c(Q874405)|c(Q9332))
action count
action atmost
action union
action find_tuple_counts
relation P361
type Q82799
type Q874405
action find_tuple_counts
relation P361
type Q82799
type Q9332
value 1
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q874405'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?s WHERE { { ?s property:P361 ?b . ?s rdf:type ontology:Q82799 . ?b rdf:type ontology:Q874405 } UNION { ?s property:P361 ?b . ?s rdf:type ontology:Q82799 . ?b rdf:type ontology:Q9332 } } GROUP BY ?s } . FILTER ( ?y <= 1 ) }
action count
action atmost
action union
action find_tuple_counts
relation part of
type name
type social group
action find_tuple_counts
relation part of
type name
type behavior
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'social group'}, {'concept': 'behavior'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?s WHERE { { ?s property:part_of ?b . ?s rdf:type ontology:name . ?b rdf:type ontology:social_group } UNION { ?s property:part_of ?b . ?s rdf:type ontology:name . ?b rdf:type ontology:behavior } } GROUP BY ?s } . FILTER ( ?y <= 1 ) }
[]
social group behavior name
SYSTEM
319
Q19984029 Q23539781 Q16101731 Q16515753 Q27355533 Q22001585 Q26000745 Q26822115 Q19986366 Q2168099 Q19963541 Q20731004 Q27651197 Q21491652 Q21501467 Q27037178 Q21484983 Q12783920 Q27037174 Q5791319 Q27651212 Q12594770 Q27356490 Q1946932 Q21144151 Q20731003 Q27357908 Q18001608 Q26775417 Q20155939 Q11283653 Q26971843 Q27465067 Q18645215 Q12788667 Q19831808 Q27357598 Q21475479 Q24477965 Q21488853 Q26156283 Q21487329 Q24477968 Q24090443 Q20675459 Q21279602 Q1058384 Q16563753 Q21450326 Q21510209 Q25114460 Q27436303 Q21431253 Q20985269 Q27037161 Q355505 Q7071783 Q27037165 Q15629245 Q21498452 Q27037169 Q235598 Q1513700 Q18515515 Q18808411 Q21492574 Q16882305 Q1240901 Q19688789 Q24251030 Q18844248 Q27678568 Q19311987 Q5646565 Q20089343 Q19672747 Q1093580 Q742083 Q19828992 Q21043141 Q22673958 Q4082729 Q18171095 Q110874 Q26448488 Q19832245 Q26822136 Q26822137 Q27635577 Q26822132 Q19688838 Q23636060 Q26822155 Q10145967 Q16161715 Q11878943 Q21506948 Q252216 Q2547055 Q21492983 Q21584287 Q272914 Q23039002 Q27037119 Q19944848 Q2553935 Q18645909 Q21512664 Q27204774 Q18808940 Q1173421 Q27476988 Q23822720 Q21450808 Q25114459 Q15238609 Q27230306 Q27538384 Q16390676 Q26772804 Q26822160 Q25695405 Q20900701 Q24091156 Q26986281 Q26235096 Q26944932 Q20875974 Q15897047 Q27450778 Q3281200 Q27229561 Q26944931 Q23640302 Q26266311 Q3372303 Q10587130 Q17165817 Q15926381 Q26736729 Q21450395 Q19687637 Q27357173 Q27356099 Q1247793 Q21470412 Q27355703 Q27185681 Q21506801 Q27203015 Q23590373 Q21534988 Q21405537 Q27355517 Q26235204 Q21069157 Q27229604 Q23907762 Q27450583 Q27229563 Q26266310 Q27450587 Q15835964 Q21471177 Q20083701 Q885595 Q27203027 Q12624980 Q1707301 Q26822099 Q2876425 Q27229572 Q24573284 Q27251921 Q5 Q631147 Q26868860 Q27651154 Q20003434 Q26736681 Q27352651 Q26877838 Q26986610 Q21502033 Q26449961 Q21452487 Q1158284 Q16876541 Q16932005 Q15788891 Q27642537 Q27450911 Q12788669 Q23590368 Q13639177 Q27037180 Q19944235 Q804437 Q21450555 Q27670177 Q4400681 Q23041619 Q1620641 Q21130107 Q808994 Q16279139 Q21447940 Q12600404 Q19998957 Q17505763 Q18552178 Q21484879 Q27356272 Q19768404 Q12036851 Q19810530 Q26822081 Q24090532 Q18228388 Q26906549 Q24090418 Q26742856 Q26986918 Q1703599 Q19961051 Q382004 Q12601635 Q5461714 Q27350540 Q12020943 Q1399288 Q12188082 Q20010325 Q26235099 Q23578592 Q2491016 Q1557998 Q27133109 Q19831835 Q21491435 Q23767331 Q23767330 Q21507872 Q27450606 Q21508944 Q2824680 Q27450608 Q26774382 Q19550817 Q18689509 Q27355496 Q19768398 Q27450724 Q15813147 Q15711050 Q12784475 Q26736416 Q21431135 Q26772911 Q21484692 Q26736415 Q27037157 Q27651236 Q26972674 Q18402175 Q21886149 Q12785732 Q19839042 Q27450686 Q26741038 Q23569212 Q21492540 Q21142292 Q27450728 Q27450834 Q27450836 Q23907739 Q1915243 Q2287331 Q23578587 Q22348139 Q21057288 Q21476618 Q263542 Q3701009 Q21484521 Q21484914 Q4835658 Q746990 Q4812724 Q21534898 Q26234451 Q19550800 Q23538357 Q1737707 Q26972634 Q16175496 Q19856970 Q21143968 Q21143966 Q20064977 Q21450552 Q19839041 Q27450738 Q27450739 Q876933 Q21538548 Q5034376 Q27131901 Q26741034 Q19582298 Q19688887 Q27450824 Q26220628 Q861966 Q13582244 Q15789615 Q20982280 Q27450829
(c(Q82799),P361,c(Q874405)|c(Q9332))
action count
action atmost
action union
action find_tuple_counts
relation P361
type Q82799
type Q874405
action find_tuple_counts
relation P361
type Q82799
type Q9332
value 1
[ANSWER]
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q874405'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?s WHERE { { ?s property:P361 ?b . ?s rdf:type ontology:Q82799 . ?b rdf:type ontology:Q874405 } UNION { ?s property:P361 ?b . ?s rdf:type ontology:Q82799 . ?b rdf:type ontology:Q9332 } } GROUP BY ?s } . FILTER ( ?y <= 1 ) }
Minami Asami Carter Farkas Türkkan Lamont Meta Candan Brodie human Rotavirusses Cassie Crawford Littleton Esin Olivera Bainbridge Dwyer Abram Bridger Tajinaste Redmond Man Holly Moosa Fedde Crawford Ademola Sylvain Dalibor Clancy Czech family name Ado Özgen Agostino Fabjan Loren Siemion Ersan Guibert Tyson Whittingstall Hewitt Guibert Matsuo Anania Regan hakham Hunter Jayne Sierra Savva Gisbert Adamou Barrington Hakim Nobiliary particle O'Donovan family Abner lizard Kelso Hersey Piso Gerlach Albano Egerton Loui Rostopchin praenomen Achim Barnaby Rowan Sami Yoshihara Han Han Aubrey Han surname Princes of Paliano Shelley Cave Sherman Belarusian surname Armand patronymic Akiyoshi Sami Akilu Řehoř Gruffudd Wito Kaj Cassie Rauf Grand Master of the Teutonic Knights Albin Urban Izumi Árnadóttir Walther Regan Jabez Çubukçubaşı Marshall Melvyn Eraydın Wedekind Abe Redouane Parvin Neil Davern Şentürk Malick Inal Savva nomen Durmuş Fedde Falk Elias Chadi Curtis Nolan Abe Seyfi Lillie Apple Ševela Percy Shigematsu Tent caterpillar Köken Apple Britt Trimnell Mai Moa Warren He Olumide Hillis Rahim Cave Frenk Kinnon Tyrell Eden Rickard Herschel Joby Raimond Yaşar Edward Savin Loudon Mateja Sweeney Florenz Asiedu Robison Ritchard Mordaunt Mynors Prentice Man Blue Joby Hyeon Tyler Ademola Aïssata Aydın Laverne Lamont human infraspecific name Cale Gottlieb Marielle Veit Seon Sanusi Addis Browning Takumi Alfonzo Heinz Máté Mai Blake Robbie Mahrez Fabjan Raimond Jean Dalrymple Osborne Bakir Hilbert Ripley Russian surname Stuart Hisataka Calvert Barry Máté Hester Sang Paltiel Virgil Alonso Salman Golden Courtney Michel Han Amin Minami Leonard Germann Hara Fabiano Sabra Jordan Izumi Afa-Negus Seon Florida black bass Sang Hunter Fearnley James Ganna Lillie Aynsley orthographical variant Gyalwang Drukpa Arnell Qutb Norman Koren Koren Henning Wilf Finlay Ado Haym Chariton Alden Marion Milić Jonas Freundel Bas Lu Amos Roveda Gill Abbas Neilson Roveda Řehoř Sylvester Thijs Bernard Alfonzo Berchtold Cushman Flower Patti Clint Kingsley Gerbrand Greenbury Harouna Henrie Florian McKeown Simon Aynsley Ripley Hester Miwa Griffith Dale Romaine Clay BIFF Brahman Ataman Fethi Rupert Alden Azuma Keefe Noah Bas Squire Herrmann Henrie Dong Hamilton Cushman Keill Moumouni magi Biff Caomhánach Tokiwa Patti Melville Tone Savea Arian dung beetles Dale Brady Maury Akpan
319
action count
action atmost
action union
action find_tuple_counts
relation part of
type name
type social group
action find_tuple_counts
relation part of
type name
type behavior
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'social group'}, {'concept': 'behavior'}]]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?s WHERE { { ?s property:part_of ?b . ?s rdf:type ontology:name . ?b rdf:type ontology:social_group } UNION { ?s property:part_of ?b . ?s rdf:type ontology:name . ?b rdf:type ontology:behavior } } GROUP BY ?s } . FILTER ( ?y <= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with atmost 25 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 25
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?c ) WHERE { ?g rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 . ?g property:P530 ?b } GROUP BY ?g } . FILTER ( ?c <= 25 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?c ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:diplomatic_relation ?b } GROUP BY ?g } . FILTER ( ?c <= 25 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q30 Q159 Q55
SYSTEM
United States of America, Russia, Netherlands
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 25
[ANSWERS] are known to have diplomatic connections with atmost 25 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?c ) WHERE { ?g rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q15617994 . ?g property:P530 ?b } GROUP BY ?g } . FILTER ( ?c <= 25 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
United States of America, Russia and Netherlands are known to have diplomatic connections with atmost 25 administrative territories
United States of America Russia Netherlands
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?b ) AS ?c ) WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g property:diplomatic_relation ?b } GROUP BY ?g } . FILTER ( ?c <= 25 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with around 21 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 21
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?r ) WHERE { ?t property:P530 ?y . ?t rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?r = 21 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 21
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?r ) WHERE { ?t property:diplomatic_relation ?y . ?t rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?r = 21 ) }
[]
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
value 21
[ANSWERS] have a diplomatic relationship with around 21 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?r ) WHERE { ?t property:P530 ?y . ?t rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?r = 21 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have a diplomatic relationship with around 21 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 21
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?r ) WHERE { ?t property:diplomatic_relation ?y . ?t rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?r = 21 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P35
Q502895
USER
How many people are the chiefs of state of that political territory ?
(Q40,P35,c(Q502895))
['Q40', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q359060 property:Q48352 ?z . ?z rdf:type ontology:Q502895 }
['Austria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Austria property:head_of_state ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q16
SYSTEM
Did you mean Canada ?
(Q35,P35,c(Q502895)) (Q16,P35,c(Q502895)) (Q40,P35,c(Q502895))
[ANSWER]
['Q35', 'P35', {'concept': 'Q502895'}] ['Q16', 'P35', {'concept': 'Q502895'}] ['Q40', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q359060 property:Q48352 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Canada ?
Canada
['Denmark', 'head of state', {'concept': 'common name'}] ['Canada', 'head of state', {'concept': 'common name'}] ['Austria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Austria property:head_of_state ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Austria. Could you tell me the answer for that?
(Q40,P35,c(Q502895))
Q40
['Q40', 'P35', {'concept': 'Q502895'}]
['Austria', 'head of state', {'concept': 'common name'}]
[]
SYSTEM
10
Q72898 Q84263 Q13014 Q72856 Q1260 Q84475 Q78490 Q84204 Q11753 Q11726
(Q40,P35,c(Q502895))
[ANSWER]
['Q40', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q359060 property:Q48352 ?z . ?z rdf:type ontology:Q502895 }
Adolf Schärf Wilhelm Miklas Franz Jonas Rudolf Kirchschläger Kurt Waldheim Michael Hainisch Thomas Klestil Theodor Körner Heinz Fischer Karl Renner
10
['Austria', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Austria property:head_of_state ?z . ?z rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q145 Q16
P27
Q502895
USER
Which people are a citizen of Canada and United Kingdom ?
AND((c(Q502895),P27,Q16), (c(Q502895),P27,Q145))
action filter_type
action intersection
action find_reverse
entity Q16
relation P27
action find_reverse
entity Q145
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q16'], [{'concept': 'Q502895'}, 'P27', 'Q145']]}
SELECT DISTINCT ?q WHERE { ?q property:P27 resource:Q16 . ?q property:P27 resource:Q145 . ?q rdf:type ontology:Q502895 }
United Kingdom Canada
action filter_type
action intersection
action find_reverse
entity Canada
relation country of citizenship
action find_reverse
entity United Kingdom
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Canada'], [{'concept': 'common name'}, 'country of citizenship', 'United Kingdom']]}
SELECT DISTINCT ?q WHERE { ?q property:country_of_citizenship resource:Canada . ?q property:country_of_citizenship resource:United_Kingdom . ?q rdf:type ontology:common_name }
[]
common name
Q4867145 Q1319495 Q7225155 Q6237682 Q23890977 Q249544 Q4859675 Q103946 Q3376930 Q2451052
SYSTEM
Some of them are Basil Deacon Hobbs, Julian Richings, Jack Riley, John Hanson, Paul O'Brien, Arthur Hailey, Barbie Wilde, Kiefer Sutherland, Peter Trent, Zoie Palmer
Q2577768 Q295328 Q292791 Q7350405 Q4960740 Q6192829 Q4756416 Q3832544 Q1396262 Q573751 Q1485766 Q3296143 Q12804215 Q3308407 Q15506292 Q508605 Q6306160 Q24698763 Q2451052 Q3101466 Q1701904 Q1257757 Q6555732 Q21524308 Q712880 Q6384165 Q536143 Q20821199 Q2821887 Q6130956 Q15457098 Q5528217 Q594781 Q7225155 Q1108447 Q267772 Q435216 Q4151006 Q1391982 Q3108724 Q1524035 Q516082 Q2474750 Q6235633 Q1743824 Q1995318 Q1174872 Q18581903 Q506352 Q4710331 Q1727248 Q17418649 Q434622 Q6248573 Q721273 Q3369876 Q522801 Q1346720 Q209175 Q6221604 Q249544 Q21524320 Q6080925 Q2134158 Q279229 Q2076985 Q336131 Q192955 Q438330 Q1382650 Q6237682 Q5584614 Q5540279 Q1599775 Q6193692 Q721323 Q7704747 Q378344 Q6259117 Q7346781 Q3376930 Q353640 Q6264906 Q912791 Q23925409 Q1395289 Q6200093 Q6551657 Q551558 Q1701251 Q185724 Q468228 Q1173997 Q4859675 Q6178821 Q3337833 Q16096934 Q2444251 Q6233922 Q1319495 Q6218085 Q6791377 Q432245 Q5079429 Q1634349 Q15462704 Q325573 Q6181057 Q403878 Q4307603 Q7966104 Q460665 Q4685114 Q16003690 Q23890977 Q2846728 Q5539954 Q468600 Q332454 Q103946 Q2061052 Q4867145 Q333913 Q8013602 Q505983 Q3499029 Q2580988 Q4267467 Q5108470 Q41411 Q5544379 Q15502240 Q361076 Q7183387 Q137634 Q4062575 Q1929400 Q472873 Q3105994 Q14514947 Q229207 Q15729633 Q6988954 Q809082 Q14949515 Q234244 Q48979 Q647447 Q6198724 Q3337847 Q3106605 Q20895339 Q129916 Q6774452 Q901137 Q5497454 Q6662694 Q5144959
AND((c(Q502895),P27,Q16), (c(Q502895),P27,Q145))
action filter_type
action intersection
action find_reverse
entity Q16
relation P27
action find_reverse
entity Q145
relation P27
type Q502895
[ANSWERS] are a citizen of Canada and United Kingdom
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q16'], [{'concept': 'Q502895'}, 'P27', 'Q145']]}
SELECT DISTINCT ?q WHERE { ?q property:P27 resource:Q16 . ?q property:P27 resource:Q145 . ?q rdf:type ontology:Q502895 }
Bill Adkins Lennox Lewis Beatrice Lillie Robert Timbrell Brenda McDonald Jill Frappier Andrew Brewin Lina Eckenstein Molly Brant Anthony Pawson Alfred Ewert Mary Balogh Tom Priestly Michael Novosad John Richardson Barbara Kelly Julia Adamson James Bradburne Zoie Palmer George Carey John Teague Frank Prewett Lionel Murton Alban Dewes Winspear Long John Baldry Keith Campbell Kate Reid Peter Edwards Abram William Lauder James Campbell Kenneth Elloway Gavin McInnes Francis Rattenbury Jack Riley Colin Francis MacKinnon Garry Chalk Thomas Henry Manning Mackenzie Gray Robbie Ross Zoltán Pál Dienes Gilbert Norwood Colin Ferguson Roy Thomson John Goldie Kit Hood Noel B. Radford David Jensen Rob Cooke Roger Spottiswoode Albert Goodwin Albert Smythe Sam Black Alan Walker John Metcalf Richard Ian Cox Patrick Sykes Alexander Hall Thomas Chandler Haliburton Kim Cattrall John Bentley Arthur Hailey Humfrey Michell Isidore Gordon Ascher Raymond Hull Amy Price-Francis Peter McGill Scott Speedman Steve Nash Jo Walton Richard Gavin Reid John Hanson Gord Mills George Harry Webster Alexander Henderson Jim Blackley John Neville Terry Matthews Wilfred Thomason Grenfell John Stevenson McDonald Robert Leckie Peter Trent David Hewlett John Wort Hannam Brian Moore Thomas James Muckle Sam Roberts Jimmy Ferguson Linda Hoyle Callum Keith Rennie John Oliver Mike Myers Brenda Milner David Christie Barbie Wilde Jennifer Shay Neil Munro Jimmy Dale Janet Wright John Francis Moore Julian Richings John Abram Matthew Walker Peter Wildeblood Charles James Campbell Hugh Garner Jackie Rae William Kennedy Jeremy Akerman Aidan Devine Dora Mavor Moore Walter Scott MacFarlane Hannah Simone Adrian Holmes Sydney Gooday Paul O'Brien Andrew Sharp George Grube Sandrine Holt Max Aitken, 1st Baron Beaverbrook Kiefer Sutherland Paul Lynch Basil Deacon Hobbs Joseph Martin William John Chapman Benson Chris Gauthier Steve Moria William Wasbrough Foster George Lawson Chris Wiggins Sandford Fleming George Scott Wallace Tom Lewis Tommy Anderson Philip Craig Jackie Burroughs John F. Allen Michael Sinelnikoff H. J. Rose Giles Walker Timothy C. Lethbridge Amanda Tapping Malvina Bolus Neil McCallum Barry Morse Mark Parry Anna Leonowens Richard Laurence Millington Synge Leo Smith Jim Walker Neill Fearnley Gillian Barber Matthew Skelton Harold Scott MacDonald Coxeter Martha Ladly Warren Christie Frederick C. Alderdice Lloyd Powell Colin Campbell
Basil Deacon Hobbs, Julian Richings, Jack Riley, John Hanson, Paul O'Brien, Arthur Hailey, Barbie Wilde, Kiefer Sutherland, Peter Trent and Zoie Palmer are a citizen of Canada and United Kingdom
Basil Deacon Hobbs Julian Richings Jack Riley John Hanson Paul O'Brien Arthur Hailey Barbie Wilde Kiefer Sutherland Peter Trent Zoie Palmer
action filter_type
action intersection
action find_reverse
entity Canada
relation country of citizenship
action find_reverse
entity United Kingdom
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Canada'], [{'concept': 'common name'}, 'country of citizenship', 'United Kingdom']]}
SELECT DISTINCT ?q WHERE { ?q property:country_of_citizenship resource:Canada . ?q property:country_of_citizenship resource:United_Kingdom . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q166142
USER
Which applications did exactly 28 people do the dubbing for ?
(c(Q166142),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q166142
type Q502895
value 28
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?e ) WHERE { ?t property:P725 ?y . ?t rdf:type ontology:Q166142 . ?y rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?e = 28 ) }
action equal
action find_tuple_counts
relation voice actor
type application
type common name
value 28
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?e ) WHERE { ?t property:voice_actor ?y . ?t rdf:type ontology:application . ?y rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?e = 28 ) }
[]
common name application
Q1371603
SYSTEM
Star Fox 64 3D
Q1371603
(c(Q166142),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q166142
type Q502895
value 28
[ANSWER] exactly 28 people did the dubbing for
[{'concept': 'Q166142'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?e ) WHERE { ?t property:P725 ?y . ?t rdf:type ontology:Q166142 . ?y rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?e = 28 ) }
Star Fox 64 3D
Star Fox 64 3D exactly 28 people did the dubbing for
Star Fox 64 3D
action equal
action find_tuple_counts
relation voice actor
type application
type common name
value 28
[{'concept': 'application'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?y ) AS ?e ) WHERE { ?t property:voice_actor ?y . ?t rdf:type ontology:application . ?y rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?e = 28 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q159
P495
Q43229 Q15961987
USER
How many organizations or television genres originated in Russia ?
(c(Q43229),P495,Q159) (c(Q15961987),P495,Q159)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P495
type Q43229
action filter_type
action find_reverse
entity Q159
relation P495
type Q15961987
[{'concept': 'Q43229'}, 'P495', 'Q159'] [{'concept': 'Q15961987'}, 'P495', 'Q159']
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { ?d rdf:type ontology:Q43229 . ?d property:P495 resource:Q159 } UNION { ?d property:P495 resource:Q159 . ?d rdf:type ontology:Q15961987 } }
Russia
action count
action union
action filter_type
action find_reverse
entity Russia
relation country of origin
type organization
action filter_type
action find_reverse
entity Russia
relation country of origin
type television genre
[{'concept': 'organization'}, 'country of origin', 'Russia'] [{'concept': 'television genre'}, 'country of origin', 'Russia']
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { ?d rdf:type ontology:organization . ?d property:country_of_origin resource:Russia } UNION { ?d property:country_of_origin resource:Russia . ?d rdf:type ontology:television_genre } }
[]
organization television genre
SYSTEM
6
Q777721 Q4043947 Q15518544 Q324580 Q62562 Q965740
(c(Q43229),P495,Q159) (c(Q15961987),P495,Q159)
action count
action union
action filter_type
action find_reverse
entity Q159
relation P495
type Q43229
action filter_type
action find_reverse
entity Q159
relation P495
type Q15961987
[ANSWER]
[{'concept': 'Q43229'}, 'P495', 'Q159'] [{'concept': 'Q15961987'}, 'P495', 'Q159']
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { ?d rdf:type ontology:Q43229 . ?d property:P495 resource:Q159 } UNION { ?d property:P495 resource:Q159 . ?d rdf:type ontology:Q15961987 } }
Smirnoff Meldis Kto khochet stat' millionerom? Leopold the Cat Luntik Yota
6
action count
action union
action filter_type
action find_reverse
entity Russia
relation country of origin
type organization
action filter_type
action find_reverse
entity Russia
relation country of origin
type television genre
[{'concept': 'organization'}, 'country of origin', 'Russia'] [{'concept': 'television genre'}, 'country of origin', 'Russia']
SELECT DISTINCT ( COUNT ( ?d ) AS ?k ) WHERE { { ?d rdf:type ontology:organization . ?d property:country_of_origin resource:Russia } UNION { ?d property:country_of_origin resource:Russia . ?d rdf:type ontology:television_genre } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11902649
P17
Q15617994
USER
Which administrative territory is Connecting road 2805 a part of ?
(Q11902649,P17,c(Q15617994))
action filter_type
action find
entity Q11902649
relation P17
type Q15617994
['Q11902649', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q11902649 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Connecting road 2805
action filter_type
action find
entity Connecting road 2805
relation country
type designation for an administrative territorial entity
['Connecting road 2805', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Connecting_road_2805 property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33
SYSTEM
Finland
Q33
(Q11902649,P17,c(Q15617994))
action filter_type
action find
entity Q11902649
relation P17
type Q15617994
[ANSWER] is Connecting road 2805 a part of
['Q11902649', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q11902649 property:P17 ?q . ?q rdf:type ontology:Q15617994 }
Finland
Finland is Connecting road 2805 a part of
Finland
action filter_type
action find
entity Connecting road 2805
relation country
type designation for an administrative territorial entity
['Connecting road 2805', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Connecting_road_2805 property:country ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]