Simple Question (Direct)
Simple Question
Q1336550
P1412
Q34770
USER
Which language can Jamie Morgan understand ?
(Q1336550,P1412,c(Q34770))
action filter_type
action find
entity Q1336550
relation P1412
type Q34770
['Q1336550', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q1336550 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
Jamie Morgan
action filter_type
action find
entity Jamie Morgan
relation languages spoken, written or signed
type language
['Jamie Morgan', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Jamie_Morgan property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q1336550,P1412,c(Q34770))
action filter_type
action find
entity Q1336550
relation P1412
type Q34770
Jamie Morgan can understand [ANSWER]
['Q1336550', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?q WHERE { resource:Q1336550 property:P1412 ?q . ?q rdf:type ontology:Q34770 }
English
Jamie Morgan can understand English
English
action filter_type
action find
entity Jamie Morgan
relation languages spoken, written or signed
type language
['Jamie Morgan', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?q WHERE { resource:Jamie_Morgan property:languages_spoken,_written_or_signed ?q . ?q rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1336550
P734
Q82799
USER
Who has the surname that person ?
(Q1860,P734,c(Q82799))
action filter_type
action find
entity Q1336550
relation P734
type Q82799
['Q1860', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q1336550 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Jamie Morgan
action filter_type
action find
entity Jamie Morgan
relation family name
type name
['English', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Jamie_Morgan property:family_name ?o . ?o rdf:type ontology:name }
[]
name
Q1260128
SYSTEM
Morgan
Q1260128
(Q1860,P734,c(Q82799))
action filter_type
action find
entity Q1336550
relation P734
type Q82799
[ANSWER] has the surname that person
['Q1860', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?o WHERE { resource:Q1336550 property:P734 ?o . ?o rdf:type ontology:Q82799 }
Morgan
Morgan has the surname that person
Morgan
action filter_type
action find
entity Jamie Morgan
relation family name
type name
['English', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?o WHERE { resource:Jamie_Morgan property:family_name ?o . ?o rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P734
Q502895
USER
How many people have that name as family name ?
(c(Q502895),P734,Q1260128)
action count
action filter_type
action find_reverse
entity Q1260128
relation P734
type Q502895
[{'concept': 'Q502895'}, 'P734', 'Q1260128']
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t property:P734 resource:Q1260128 . ?t rdf:type ontology:Q502895 }
action count
action filter_type
action find_reverse
entity Morgan
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'Morgan']
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t property:family_name resource:Morgan . ?t rdf:type ontology:common_name }
[]
common name
SYSTEM
106
Q3675537 Q2866591 Q3703268 Q234897 Q3809667 Q5591295 Q3705892 Q1771428 Q18590181 Q268708 Q313949 Q730074 Q4704469 Q6249410 Q24529710 Q5107501 Q449734 Q773732 Q3869861 Q3959359 Q233510 Q28932 Q7298500 Q4952370 Q15302401 Q5064237 Q87943 Q518290 Q3929799 Q455116 Q3878597 Q2767 Q787209 Q433618 Q3666670 Q18627364 Q1375498 Q39236 Q24249568 Q172338 Q3751884 Q23783053 Q22348394 Q7839336 Q447022 Q215502 Q614928 Q3639111 Q464208 Q21036259 Q557758 Q333141 Q1336550 Q21008601 Q956920 Q313458 Q3434272 Q313462 Q443424 Q3856229 Q14542 Q3281856 Q313657 Q18010830 Q3081428 Q541964 Q54168 Q3934007 Q264396 Q3751443 Q18419300 Q254635 Q16223818 Q25713865 Q448288 Q23008913 Q954319 Q4043193 Q235047 Q948122 Q543398 Q3848056 Q200514 Q24053198 Q268254 Q26250588 Q2315542 Q362564 Q2618161 Q11351025 Q342665 Q5271243 Q1392500 Q1392358 Q3807423 Q355125 Q6911775 Q2298862 Q1065287 Q4576662 Q20732760 Q12003905 Q509446 Q16335035 Q5622482 Q177681
(c(Q502895),P734,Q1260128)
action count
action filter_type
action find_reverse
entity Q1260128
relation P734
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P734', 'Q1260128']
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t property:P734 resource:Q1260128 . ?t rdf:type ontology:Q502895 }
Chris Morgan Ashtone Morgan David Morgan Michèle Morgan John W. Morgan Grace McKenzie Derrick Morgan Craig Morgan Jordan Morgan Katie Morgan William G. Morgan Trevor Morgan Al Morgan John Morgan George Morgan Chris Morgan Elaine Morgan Helen Morgan Nadja Morgan Shelley Taylor Morgan Alex Morgan Matt Morgan Raymar Morgan Boyd Morgan Jim Morgan Ceri Morgan Paul Morgan Kelly Morgan Ralph Morgan Helen Morgan Nory Morgan Daniel Morgan Chloe-Beth Morgan Brit Morgan Charlie Morgan Robert Morgan Ted Morgan Adam Morgan James Hiley Morgan Dave Morgan Frank Morgan Ann Morgan Christopher Morgan Trevor Morgan Debbi Morgan Henry Morgan Cliff Morgan Beth Morgan Lorrie Morgan Chet Morgan Piers Morgan Rhodri Morgan Jamie Morgan Price T. Morgan Dennis Morgan Lewis H. Morgan Robbi Morgan Joseph Morgan Sally Morgan Michael Morgan Tracy Morgan Malena Morgan Colin Morgan Mandy Morgan Lina Morgan Jacques de Morgan J. P. Morgan Rex Morgan Vanessa Morgan Franco Morgan Molly Morgan Richard K. Morgan Melissa Morgan Andre Morgan Stefani Morgan Jason C. Morgan Glen Morgan Loscil Barbara Morgan Peter Morgan William Wilson Morgan Marina Morgan Frank Morgan Annie Morgan Marlo Morgan David Morgan Cindy Morgan Lee Morgan Willie Morgan Lorna Morgan Jeffrey Dean Morgan Diana Morgan Wes Morgan Ralph Morgan Jason Morgan Harry Morgan Morgan Morgan Sandra Morgan Charles Langbridge Morgan Steve Morgan Dafydd Siencyn Morgan Sue Morgan Chesty Morgan Lindsey Morgan Guy Morgan Thomas Hunt Morgan
106
action count
action filter_type
action find_reverse
entity Morgan
relation family name
type common name
[{'concept': 'common name'}, 'family name', 'Morgan']
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { ?t property:family_name resource:Morgan . ?t rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q502185
P35
Q502895 Q1048835 Q15617994
USER
How many people are elected as the head of state of greater number of political territories and administrative territories than Andrey Vorobyov ?
(c(Q1048835)|c(Q15617994),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q502185
relation P35
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:P35 resource:Q502185 . { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?f > ?i ) . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?f ) WHERE { { ?t property:P35 ?j . ?j rdf:type ontology:Q502895 . ?t rdf:type ontology:Q1048835 } UNION { ?j rdf:type ontology:Q502895 . ?t rdf:type ontology:Q15617994 . ?t property:P35 ?j } } GROUP BY ?j } }
Andrey Vorobyov
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Andrey Vorobyov
relation head of state
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:head_of_state resource:Andrey_Vorobyov . { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?f > ?i ) . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?f ) WHERE { { ?t property:head_of_state ?j . ?j rdf:type ontology:common_name . ?t rdf:type ontology:political_territorial_entity } UNION { ?j rdf:type ontology:common_name . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:head_of_state ?j } } GROUP BY ?j } }
[]
common name political territorial entity designation for an administrative territorial entity
SYSTEM
450
Q29574 Q298403 Q2573 Q356990 Q2571 Q6737124 Q6756617 Q189732 Q57530 Q110330 Q709734 Q653611 Q153620 Q9151911 Q2494376 Q154952 Q67345 Q157 Q13107337 Q463533 Q365209 Q3176299 Q365196 Q217500 Q320 Q194000 Q361567 Q57534 Q329 Q45068 Q151929 Q153986 Q43179 Q56226 Q57491 Q57319 Q57258 Q57313 Q236503 Q57315 Q55758 Q18119638 Q1459699 Q57383 Q57380 Q57381 Q57385 Q128332 Q629702 Q13014 Q367825 Q1059948 Q57405 Q57407 Q57402 Q310536 Q16105972 Q57543 Q296741 Q207728 Q78490 Q152756 Q352200 Q181154 Q14362 Q151312 Q264210 Q444 Q267745 Q58056 Q16765135 Q297825 Q4413 Q57429 Q57537 Q94941 Q15382355 Q363392 Q57473 Q5901842 Q57348 Q361173 Q12967 Q157812 Q3956186 Q1245 Q57478 Q1241 Q1240 Q1242 Q181832 Q444290 Q172388 Q15031 Q1238 Q299100 Q16988 Q1230 Q1233 Q1235 Q294969 Q561837 Q12762303 Q20875 Q57449 Q57363 Q57366 Q57441 Q40722 Q57444 Q57446 Q284233 Q295212 Q76179 Q5448556 Q41117 Q445553 Q165210 Q355610 Q2625711 Q1464 Q968038 Q128416 Q29032 Q29207 Q310247 Q289285 Q2866 Q2042 Q155002 Q155004 Q196070 Q208497 Q250087 Q2416022 Q9439 Q44819 Q23530 Q1354851 Q880065 Q335323 Q2542 Q2540 Q7747 Q57667 Q299152 Q57542 Q735387 Q147989 Q6762928 Q377935 Q36233 Q156617 Q157789 Q976974 Q236853 Q17485808 Q57324 Q57327 Q16669148 Q57480 Q57482 Q192049 Q12149 Q2960197 Q36788 Q57390 Q57392 Q57394 Q57398 Q2594 Q52878 Q570155 Q2112764 Q57431 Q57434 Q161958 Q57436 Q57438 Q344729 Q154998 Q182266 Q156187 Q14356 Q151305 Q2105 Q189186 Q335310 Q944643 Q2038 Q19581 Q52927 Q157793 Q483672 Q12366816 Q16597 Q15850 Q373532 Q3911 Q11753 Q280856 Q57506 Q284003 Q16908893 Q37181 Q52890 Q43330 Q128894 Q76127 Q191045 Q12950 Q44329 Q296950 Q57340 Q2665070 Q362618 Q128911 Q324108 Q15029 Q218435 Q4250160 Q1079522 Q157776 Q57298 Q57295 Q150747 Q590227 Q4414 Q2498541 Q57276 Q57274 Q57272 Q57379 Q57376 Q17410819 Q57371 Q57279 Q5018756 Q15054736 Q9099 Q230578 Q9094 Q102139 Q1112792 Q612803 Q3318231 Q295141 Q314791 Q153832 Q270645 Q2091478 Q52925 Q52924 Q52926 Q485946 Q1231345 Q570195 Q42410 Q156572 Q1568274 Q10665 Q2444338 Q23034482 Q335033 Q18117069 Q156806 Q336285 Q602428 Q45785 Q15633683 Q172183 Q311413 Q58077 Q12911 Q76167 Q2551 Q242651 Q7176020 Q84204 Q17995110 Q42852 Q171684 Q57553 Q57311 Q379148 Q504372 Q217442 Q355053 Q313539 Q84475 Q381027 Q189575 Q22513 Q57331 Q165487 Q57336 Q153940 Q269412 Q471037 Q46809 Q154993 Q354705 Q154041 Q16004 Q5972763 Q57343 Q57424 Q57422 Q57421 Q14345 Q14342 Q16193958 Q473247 Q2569 Q20022984 Q76156 Q2563 Q2567 Q455854 Q157781 Q936831 Q153167 Q58132 Q156781 Q156780 Q2185 Q299629 Q11726 Q57519 Q57512 Q57517 Q57555 Q1354229 Q151944 Q72856 Q154946 Q161059 Q5816 Q62483 Q57550 Q311583 Q128413 Q152265 Q357539 Q72898 Q1260 Q563297 Q313350 Q559756 Q2582 Q206471 Q151729 Q34453 Q57289 Q172083 Q57282 Q153586 Q57287 Q57284 Q704339 Q57460 Q57467 Q57464 Q57308 Q3246667 Q37979 Q965155 Q57303 Q5983599 Q10707 Q26776 Q239717 Q2357762 Q50678 Q4715 Q105480 Q128307 Q154460 Q312355 Q146496 Q188667 Q298577 Q1356927 Q2498455 Q3407316 Q57413 Q57410 Q19943 Q57418 Q20090884 Q21968142 Q317894 Q163813 Q57356 Q24692 Q456902 Q5220343 Q84263 Q1707507 Q2538 Q2124 Q18352991 Q599988 Q297057 Q229493 Q57521 Q57526 Q373605 Q17132 Q138048 Q212751 Q4772220 Q212058 Q878336 Q562002 Q701484 Q1382174 Q12976 Q12974 Q12973 Q12971 Q14257286 Q1459658 Q128371 Q319153 Q314514 Q57306 Q229300 Q299173 Q1228 Q1224 Q206421 Q1220 Q310136 Q57338 Q39259 Q307871 Q2757 Q51672 Q57458 Q333824 Q57350 Q57352 Q57452 Q57456 Q57454 Q183848 Q380985 Q9682 Q15039600
(c(Q1048835)|c(Q15617994),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q502185
relation P35
type Q1048835
type Q15617994
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:P35 resource:Q502185 . { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?f > ?i ) . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?f ) WHERE { { ?t property:P35 ?j . ?j rdf:type ontology:Q502895 . ?t rdf:type ontology:Q1048835 } UNION { ?j rdf:type ontology:Q502895 . ?t rdf:type ontology:Q15617994 . ?t property:P35 ?j } } GROUP BY ?j } }
Beatrix of the Netherlands Umar II Gustav Heinemann Michal Kováč Walter Scheel Maithripala Sirisena Marcelo Rebelo de Sousa Leonid Kravchuk Gurbanguly Berdimuhamedow Ephraim Katzir Evaristo Carvalho Hipólito Mejía Amānullāh Khān Andrzej Duda Edmund Lawrence Willem-Alexander of the Netherlands John William, Duke of Jülich-Cleves-Berg François Hollande Giorgi Margvelashvili Michel Temer Konstantinos Tsatsos Kolinda Grabar-Kitarović Phaedon Gizikis Rupiah Banda Michelle Bachelet Arnold Rüütel Muhammadu Buhari Mohammed Magariaf Nicolas Sarkozy Carl XVI Gustaf of Sweden Eduard Shevardnadze Guy Scott Ellen Johnson Sirleaf Kim Jong-un Ricardo Martinelli Norodom Sihamoni Ivo Josipović José Eduardo dos Santos Fernando Collor de Mello Salva Kiir Mayardit Aleksander Kwaśniewski Guerrino Zanotti Viktor Yushchenko Girma Wolde-Giorgis Goodluck Jonathan Haris Silajdžić Teodoro Obiang Nguema Mbasogo Hisham ibn Abd al-Malik Leonid Kuchma Franz Jonas Salman bin Abdulaziz Al Saud Khalifa bin Zayed Al Nahyan Susilo Bambang Yudhoyono Truong Tan Sang Daniel Ortega Francesco I Sforza Michel Kafando Sprent Dabwido Enrique Peña Nieto Mohammad Najibullah Thomas Klestil Frederick VIII of Denmark Charles II, Duke of Parma Muawiyah I Chun Doo-hwan Frederick IX of Denmark Muawiya II Lech Wałęsa William Deane Christopher of Bavaria Isabel Saint Malo Željko Komšić Alpha Condé Danilo Medina Letsie III of Lesotho Frederick VII of Denmark Hery Rajaonarimampianina Michel Aoun Joan Enric Vives Sicília Horacio Cartes Isaias Afewerki Sulejman Tihić Leopold II Frederick III of Denmark Sergio Mattarella Enrico De Nicola Nicolae Timofti Giovanni Gronchi Antonio Segni Luigi Einaudi Moshe Katsav Louis, King of Etruria Ashraf Ghani Ahmadzai Xi Jinping Giuseppe Saragat Zalman Shazar Liu Shaoqi Francesco Cossiga Sandro Pertini Giovanni Leone Mohamed Ould Abdel Aziz Mauricio Macri Andrej Kiska Edward VII Ian Khama Andry Rajoelina Emomali Rahmon Ram Baran Yadav Dilma Rousseff Choummaly Sayasone Pranab Mukherjee Sulayman ibn Abd al-Malik Rosen Plevneliev Megawati Sukarnoputri Filipe Nyusi Kim Il-sung Prince Charles, Count of Flanders Kim Young-sam Mohammed Nadir Shah Vseslav Izyaslavich Benigno Simeon Cojuangco Aquino III Dong Biwu Ibrahim ibn al-Walid Miloš Zeman Sauli Niinistö Mohammed Daoud Khan Filippo Maria Visconti Alexander Lukashenko Charles de Gaulle Frederick VI of Denmark Philippe of Belgium Uhuru Kenyatta Tupou VI Bill Hayden Raimonds Vējonis Queen Victoria Suharto Dmitry Medvedev John Kerr Héctor García Godoy William Morrison, 1st Viscount Dunrossil Horst Köhler Christian Wulff Vladimir Putin Dési Bouterse Emil Constantinescu Filip Vujanović William McKell Joaquín Balaguer Marie Louise Coleiro Preca Yang Shangkun Václav Havel Christian X of Denmark Frederick I of Denmark Peter Cosgrove Ludovico Sforza Aguila Salah Issa Blaise Compaoré Hassanal Bolkiah Patrice Talon Abdrabbuh Mansour Hadi Mahamadou Issoufou Yun Posun Thein Sein Charles Savarin Abd al-Malik ibn Marwan Ismaïl Omar Guelleh Armando Guebuza Nursultan Nazarbayev Aníbal Cavaco Silva Theodor Heuss Gustaf VI Adolf of Sweden John II, Duke of Cleves Nicos Anastasiades Tomislav Nikolić Václav Klaus Eric of Pomerania Gjorge Ivanov Macky Sall Christos Sartzetakis Christian III of Denmark Xiang Yu Frederick V of Denmark Park Chung-hee Christian IX of Denmark Jacques Chirac Zelman Cowen Richard Casey, Baron Casey Mladen Ivanić François Mitterrand Ratael Correa Charles XIV John of Sweden Christian V of Denmark Ali Abdullah Saleh Kersti Kaljulaid Jiang Zemin Oleksandr Turchynov Michail Stasinopoulos Albert II Heinz Fischer George VI Andris Bērziņš Al-Walid I José Mário Vaz Luiz Inácio Lula da Silva Gustaf V of Sweden Mikhail Saakashvili Yitzhak Ben-Zvi Sukarno Felipe VI Alain Poher Bashar al-Assad Antanas Smetona Mswati III Jozo Križanović Adolph I, Duke of Cleves Ezer Weizman Ibrahim Boubacar Keïta Hu Jintao Zviad Gamsakhurdia Tion Otang Erasme Louis Surlet de Chokier John, King of Denmark Abdullah of Saudi Arabia Ivan Gašparovič Wilhelmina of the Netherlands Edward VIII Faure Gnassingbé Rogvolod Michael Higgins Yoweri Museveni Paul Biya Dalia Grybauskaitė Jigme Khesar Namgyel Wangchuck Fuad Masum Ilham Aliyev Traian Băsescu John Magufuli Mulatu Teshome Tabaré Vázquez Fernando Henrique Cardoso José Mujica Margrethe II of Denmark Anna Maria Muccioli Serzh Sargsyan Joko Widodo Chaim Herzog Yazid II Alcide De Gasperi Rose Francine Rogombé Ioannis Alevras Charles XV of Sweden Oscar II of Sweden Oscar I of Sweden Itamar Franco Paul Kagame John I, Duke of Cleves Evo Morales Christian VII of Denmark Hage Geingob Kim Jong-il Mirko Šarović Taaneti Mamau William Slim, 1st Viscount Slim Baldwin Lonsdale Konstantinos Karamanlis Tommy Remengesau Antonio Guzmán Fernández Kim Dae-jung Catherine Samba-Panza Chaim Weizmann Li Xiannian Petro Poroshenko Christopher Loeak Abdurrahman Wahid Johannes Rau Roh Tae-woo Peter Mutharika Theodor Körner Jimmy Morales Abdullah Gül Rhee Syng-man Mohammed VI of Morocco Juan Manuel Santos Jean-Pierre Bemba Ye Jianying Yazid I Michael Jeffery Beji Caid el Sebsi Michael Hainisch Pedro Pablo Kuczynski Ion Iliescu Zhu De Qaboos bin Said al Said Ahmet Necdet Sezer Ali Khamenei Christian I of Denmark George V Inayatullah Khan Raúl Castro Christian VI of Denmark Frederick Ballantyne Frederick II of Denmark Henri, Grand Duke of Luxembourg Jacobo Majluta Azar Pierre Nkurunziza Manuel Serifo Nhamadjo Donald Ramotar Tsakhiagiin Elbegdorj Roh Moo-hyun Lee Myung-bak Bidhya Bhandari Habibullāh Kalakāni Karl Carstens Ameenah Gurib-Fakim Bacharuddin Jusuf Habibie Roman Herzog Richard von Weizsäcker Reuven Rivlin Christian VIII of Denmark Salvador Sánchez Cerén Valdas Adamkus Nicolás Maduro Mário Soares Jorge Sampaio Georges Pompidou Léon M'ba Karl Renner Taur Matan Ruak Michel Martelly Jorge Carlos Fonseca Sabah Al-Ahmad Al-Jaber Al-Sabah Peter Hollingworth Leonel Fernández el ladron Rudolf Kirchschläger Juliana of the Netherlands Frederick IV of Denmark Mao Zedong William, Duke of Jülich-Cleves-Berg Abdul Halim of Kedah Yitzhak Navon Yazid III Mohammed Zahir Shah Gian Galeazzo Visconti Adolf Schärf Kurt Waldheim Baron Waqa Choi Kyu-ha Dragan Čović Heinrich Lübke Borut Pahor Süleyman Demirel Boris Yeltsin Toomas Hendrik Ilves Omar Bongo Jacob Zuma Christian IV of Denmark Harald V of Norway Ólafur Ragnar Grímsson John III, Duke of Cleves Ernest Bai Koroma János Áder Abdullah II of Jordan Abdelaziz Bouteflika Abdul Hamid Akihito Teburoro Tito Karolos Papoulias Luis Guillermo Solís Robert Mugabe Momčilo Krajišnik Pearlette Louisy Izyaslav of Polotsk John Mahama Moncef Marzouki Kenneth Kaunda Al-Walid II Christian II of Denmark Bakir Izetbegović Stjepan Mesić Burhanuddin Rabbani Marwan I Ninian Stephen Bryachislav of Polotsk Prokopis Pavlopoulos Alassane Ouattara Shimon Peres Juan Carlos I Denis Sassou Nguesso Hilda C. Heine Casten Nemra Galeazzo Maria Sforza Rudolf Schuster Yahya Jammeh Almazbek Atambayev Gian Maria Visconti Danny Faure Wilhelm Miklas Eliud Williams Joachim Gauck Valéry Giscard d'Estaing Edgar Lungu Roch Marc Christian Kaboré Frederick Chiluba Nino Burjanadze Ali Bongo Ondimba Bujar Nishani Epeli Nailatikau Soong Ching-ling Park Geun-hye Algirdas Brazauskas Anthony Carmona Levy Mwanawasa Gianfranco Terenzi Salvador Jorge Blanco Klaus Iohannis Paul Hasluck Baudouin of Belgium Albert I Leopold III Leopold I Mamnoon Hussain Viktor Yanukovych Marwan II Hassan Sheikh Mohamud Gian Galeazzo Sforza Jalal Talabani Quentin Bryce Michael Sata Oscar Luigi Scalfaro Carlo Azeglio Ciampi Konstantinos Stephanopoulos Giorgio Napolitano Nebojša Radmanović Mahinda Rajapaksa Recep Tayyip Erdoğan Abdel Fattah el-Sisi Lech Kaczyński Herod the Great Ikililou Dhoinine William Sidney, 1st Viscount De L'Isle Idriss Déby Hamad bin Isa Al Khalifa François Bozizé Anote Tong Hans-Adam II, Prince of Liechtenstein Alija Izetbegović Aleksandras Stulginskis Elizabeth II Gian Carlo Capicchioni
450
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Andrey Vorobyov
relation head of state
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { ?u property:head_of_state resource:Andrey_Vorobyov . { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?f > ?i ) . { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?f ) WHERE { { ?t property:head_of_state ?j . ?j rdf:type ontology:common_name . ?t rdf:type ontology:political_territorial_entity } UNION { ?j rdf:type ontology:common_name . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:head_of_state ?j } } GROUP BY ?j } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q57319
P35
Q502895 Q1048835 Q15617994
USER
And how about Norodom Sihamoni?
(c(Q1048835)|c(Q15617994),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q57319
relation P35
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?n ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?u rdf:type ?n } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:P35 resource:Q57319 . { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?q > ?a ) }
Norodom Sihamoni
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Norodom Sihamoni
relation head of state
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?n ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?u rdf:type ?n } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:head_of_state resource:Norodom_Sihamoni . { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?q > ?a ) }
[]
common name political territorial entity designation for an administrative territorial entity
SYSTEM
16
Q154952 Q157 Q7747 Q147989 Q280856 Q43330 Q12950 Q324108 Q590227 Q156806 Q189575 Q269412 Q151944 Q559756 Q229493 Q9682
(c(Q1048835)|c(Q15617994),P35,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q57319
relation P35
type Q1048835
type Q15617994
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?n ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?u rdf:type ?n } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:P35 resource:Q57319 . { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?q > ?a ) }
Willem-Alexander of the Netherlands François Hollande Vladimir Putin Joaquín Balaguer George VI Mikhail Saakashvili Alain Poher Ibrahim Boubacar Keïta Edward VIII Konstantinos Karamanlis Ion Iliescu George V Leonel Fernández el ladron Dragan Čović Nino Burjanadze Elizabeth II
16
action count
action greater
action union
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action find_reverse_tuple_counts
relation head of state
type common name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Norodom Sihamoni
relation head of state
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?q ) WHERE { VALUES ( ?n ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?u rdf:type ?n } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { ?d property:head_of_state resource:Norodom_Sihamoni . { ?d rdf:type ?h . VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?q > ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q21491852
P138
Q502895 Q2472587 Q82799
USER
How many names are named after approximately the same number of people or peoples as Poulain ?
(c(Q82799),P138,c(Q502895)|c(Q2472587))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q502895
action find_tuple_counts
relation P138
type Q82799
type Q2472587
action count
action filter_multi_types
action find
entity Q21491852
relation P138
type Q502895
type Q2472587
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:Q502895 ) ( ontology:Q2472587 ) } } GROUP BY ?p } . FILTER ( ?j = ?b ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:Q21491852 property:P138 ?a . { { ?a rdf:type ontology:Q502895 } UNION { ?a rdf:type ontology:Q2472587 } } } } }
Poulain
action count
action approx
action union
action find_tuple_counts
relation named after
type name
type common name
action find_tuple_counts
relation named after
type name
type people
action count
action filter_multi_types
action find
entity Poulain
relation named after
type common name
type people
[{'concept': 'name'}, 'named after', [{'concept': 'common name'}, {'concept': 'people'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:common_name ) ( ontology:people ) } } GROUP BY ?p } . FILTER ( ?j = ?b ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:Poulain property:named_after ?a . { { ?a rdf:type ontology:common_name } UNION { ?a rdf:type ontology:people } } } } }
[]
common name people name
SYSTEM
100
Q18335877 Q25212228 Q6501864 Q27022433 Q16281329 Q25368020 Q23727105 Q18043344 Q16428618 Q1069827 Q46767 Q1061262 Q25115046 Q16871796 Q23688105 Q23599481 Q1158323 Q1370531 Q16869665 Q1158446 Q1158882 Q8046631 Q11231408 Q24699545 Q13099004 Q17747435 Q15785531 Q21508058 Q16869754 Q5352294 Q20747163 Q813701 Q17847495 Q15629400 Q1812295 Q25343999 Q21449089 Q23783070 Q1643088 Q21507928 Q2909103 Q24529820 Q21448754 Q23995126 Q25058808 Q21501910 Q18198433 Q13553585 Q24805372 Q24451619 Q21491852 Q19847573 Q568872 Q25303577 Q1260304 Q714189 Q21493520 Q18309769 Q17643158 Q21506697 Q2160221 Q16865178 Q26985935 Q179234 Q21517798 Q18198435 Q928249 Q318363 Q24566045 Q1724227 Q26262632 Q23773623 Q18578754 Q25201582 Q1882407 Q24035235 Q22738156 Q13626156 Q19831835 Q16965278 Q20818054 Q16883336 Q16860286 Q25326750 Q16865812 Q20963077 Q612479 Q1755217 Q17625919 Q26247962 Q22922124 Q24689291 Q16877784 Q16865123 Q16148136 Q20727079 Q16881199 Q21491815 Q19899706 Q24229341
(c(Q82799),P138,c(Q502895)|c(Q2472587))
action count
action approx
action union
action find_tuple_counts
relation P138
type Q82799
type Q502895
action find_tuple_counts
relation P138
type Q82799
type Q2472587
action count
action filter_multi_types
action find
entity Q21491852
relation P138
type Q502895
type Q2472587
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q502895'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:Q502895 ) ( ontology:Q2472587 ) } } GROUP BY ?p } . FILTER ( ?j = ?b ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:Q21491852 property:P138 ?a . { { ?a rdf:type ontology:Q502895 } UNION { ?a rdf:type ontology:Q2472587 } } } } }
Prévot Émile-Louis Kaplan Danziger Sha'aban Racine Poisson Renard Súla Rosario Meyer Ruby Louarn Lancaster de Bragança Bouvier Albrecht Meister (surname) Draper Smith Fisher Yael Fischer Saunier Larsen Ruzena Barber Delaroche Eastman Fisichella Saccharomyces carlsbergensis Becker Rózsa Dimorphotheca ecklonis Van Leemput Grenier Lebreton Potier Ramos Mouton Boissel Rameau Ahrens Mercier Dumoulin Boulanger Peleg Gold Bigot Métivier Poulain Laserbeak Palmer Vallon Berger Duce Bergmann Macdara If-Jesus-Christ-Had-Not-Died-For-Thee-Thou-Hadst-Been-Damned Lenormand Roche Bureau Froment Cro-Magnon Appenzeller Phanuel Kelly Abel Pignon Rose Ofer Lamour Voisin Roux MacGowan Kleineidam Zijlstra Ackermann Qutb Wald Giolla Íosa Silver Boucher Février Couture Aryaman Koehler Magowan Du Moulin Master of The Hours of Henri II von Mecklenburg-Schwerin Vigneron Napoli Buffet Archer Schultheiss Picard Le Guen Sawyer Toscano
100
action count
action approx
action union
action find_tuple_counts
relation named after
type name
type common name
action find_tuple_counts
relation named after
type name
type people
action count
action filter_multi_types
action find
entity Poulain
relation named after
type common name
type people
[{'concept': 'name'}, 'named after', [{'concept': 'common name'}, {'concept': 'people'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?n . VALUES ( ?n ) { ( ontology:common_name ) ( ontology:people ) } } GROUP BY ?p } . FILTER ( ?j = ?b ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?b ) WHERE { resource:Poulain property:named_after ?a . { { ?a rdf:type ontology:common_name } UNION { ?a rdf:type ontology:people } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1336550
P641
Q349
USER
Which sport was Jamie Morgan a part of ?
(Q1336550,P641,c(Q349))
action filter_type
action find
entity Q1336550
relation P641
type Q349
['Q1336550', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q1336550 property:P641 ?m . ?m rdf:type ontology:Q349 }
Jamie Morgan
action filter_type
action find
entity Jamie Morgan
relation sport
type sport
['Jamie Morgan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:Jamie_Morgan property:sport ?m . ?m rdf:type ontology:sport }
[]
sport
Q847
SYSTEM
tennis
Q847
(Q1336550,P641,c(Q349))
action filter_type
action find
entity Q1336550
relation P641
type Q349
[ANSWER] was Jamie Morgan a part of
['Q1336550', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?m WHERE { resource:Q1336550 property:P641 ?m . ?m rdf:type ontology:Q349 }
tennis
Tennis was Jamie Morgan a part of
tennis
action filter_type
action find
entity Jamie Morgan
relation sport
type sport
['Jamie Morgan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?m WHERE { resource:Jamie_Morgan property:sport ?m . ?m rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1160317
Q349
USER
And also tell me about Dan Catenacci?
(Q1160317,P641,c(Q349))
action filter_type
action find
entity Q1160317
relation P641
type Q349
['Q1160317', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q1160317 property:P641 ?g . ?g rdf:type ontology:Q349 }
Dan Catenacci
action filter_type
action find
entity Dan Catenacci
relation sport
type sport
['Dan Catenacci', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:Dan_Catenacci property:sport ?g . ?g rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q1160317,P641,c(Q349))
action filter_type
action find
entity Q1160317
relation P641
type Q349
[ANSWER]
['Q1160317', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { resource:Q1160317 property:P641 ?g . ?g rdf:type ontology:Q349 }
ice hockey
ice hockey
action filter_type
action find
entity Dan Catenacci
relation sport
type sport
['Dan Catenacci', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { resource:Dan_Catenacci property:sport ?g . ?g rdf:type ontology:sport }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q8436 Q9332 Q82799
USER
How many names are parts of atleast 1 families and behaviors ?
(c(Q82799),P361,c(Q8436)|c(Q9332))
action count
action atleast
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q9332
value 1
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) ?l WHERE { VALUES ( ?k ) { ( ontology:Q8436 ) ( ontology:Q9332 ) } . ?d rdf:type ?k } GROUP BY ?l } . FILTER ( ?m >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type behavior
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'behavior'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) ?l WHERE { VALUES ( ?k ) { ( ontology:family ) ( ontology:behavior ) } . ?d rdf:type ?k } GROUP BY ?l } . FILTER ( ?m >= 1 ) }
[]
family behavior name
SYSTEM
3
Q235598 Q742083 Q382004
(c(Q82799),P361,c(Q8436)|c(Q9332))
action count
action atleast
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q9332
value 1
[ANSWER]
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) ?l WHERE { VALUES ( ?k ) { ( ontology:Q8436 ) ( ontology:Q9332 ) } . ?d rdf:type ?k } GROUP BY ?l } . FILTER ( ?m >= 1 ) }
Piso Princes of Paliano Afa-Negus
3
action count
action atleast
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type behavior
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'behavior'}]]
SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) ?l WHERE { VALUES ( ?k ) { ( ontology:family ) ( ontology:behavior ) } . ?d rdf:type ?k } GROUP BY ?l } . FILTER ( ?m >= 1 ) }
[]