Simple Question (Direct)
Simple Question
Q297603
P7
Q502895
USER
Which person is the brother of Nemanja Matić ?
(Q297603,P7,c(Q502895))
action filter_type
action find
entity Q297603
relation P7
type Q502895
['Q297603', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q297603 property:P7 ?d . ?d rdf:type ontology:Q502895 }
Nemanja Matić
action filter_type
action find
entity Nemanja Matić
relation brother
type common name
['Nemanja Matić', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Nemanja_Matić property:brother ?d . ?d rdf:type ontology:common_name }
[]
common name
Q591510
SYSTEM
Uroš Matić
Q591510
(Q297603,P7,c(Q502895))
action filter_type
action find
entity Q297603
relation P7
type Q502895
[ANSWER] is the brother of Nemanja Matić
['Q297603', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q297603 property:P7 ?d . ?d rdf:type ontology:Q502895 }
Uroš Matić
Uroš Matić is the brother of Nemanja Matić
Uroš Matić
action filter_type
action find
entity Nemanja Matić
relation brother
type common name
['Nemanja Matić', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Nemanja_Matić property:brother ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q591510
P734
Q82799
USER
Which name is associated with that person ?
(Q591510,P734,c(Q82799))
action filter_type
action find
entity Q591510
relation P734
type Q82799
['Q591510', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q82799 . resource:Q591510 property:P734 ?x }
Uroš Matić
action filter_type
action find
entity Uroš Matić
relation family name
type name
['Uroš Matić', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:name . resource:Uroš_Matić property:family_name ?x }
[]
name
Q21511729
SYSTEM
Matić
Q21511729
(Q591510,P734,c(Q82799))
action filter_type
action find
entity Q591510
relation P734
type Q82799
[ANSWER] is associated with that person
['Q591510', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q82799 . resource:Q591510 property:P734 ?x }
Matić
Matić is associated with that person
Matić
action filter_type
action find
entity Uroš Matić
relation family name
type name
['Uroš Matić', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:name . resource:Uroš_Matić property:family_name ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q591510
P54
Q1194951
USER
How many national sports teams are the team that Uroš Matić are a member of ?
(Q591510,P54,c(Q1194951))
action count
action filter_type
action find
entity Q591510
relation P54
type Q1194951
['Q591510', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ontology:Q1194951 . resource:Q591510 property:P54 ?u }
Uroš Matić
action count
action filter_type
action find
entity Uroš Matić
relation member of sports team
type national sports team
['Uroš Matić', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ontology:national_sports_team . resource:Uroš_Matić property:member_of_sports_team ?u }
[]
national sports team
SYSTEM
1
Q188568
(Q591510,P54,c(Q1194951))
action count
action filter_type
action find
entity Q591510
relation P54
type Q1194951
[ANSWER]
['Q591510', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ontology:Q1194951 . resource:Q591510 property:P54 ?u }
Macedonia national football team
1
action count
action filter_type
action find
entity Uroš Matić
relation member of sports team
type national sports team
['Uroš Matić', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ontology:national_sports_team . resource:Uroš_Matić property:member_of_sports_team ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q297603
P54
Q1194951
USER
Which national sports team is Nemanja Matić a member of ?
(Q297603,P54,c(Q1194951))
action filter_type
action find
entity Q297603
relation P54
type Q1194951
['Q297603', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?p WHERE { resource:Q297603 property:P54 ?p . ?p rdf:type ontology:Q1194951 }
Nemanja Matić
action filter_type
action find
entity Nemanja Matić
relation member of sports team
type national sports team
['Nemanja Matić', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?p WHERE { resource:Nemanja_Matić property:member_of_sports_team ?p . ?p rdf:type ontology:national_sports_team }
[]
national sports team
Q182740
SYSTEM
Serbia national football team
Q182740
(Q297603,P54,c(Q1194951))
action filter_type
action find
entity Q297603
relation P54
type Q1194951
The [ANSWER] is Nemanja Matić a member of
['Q297603', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?p WHERE { resource:Q297603 property:P54 ?p . ?p rdf:type ontology:Q1194951 }
Serbia national football team
The Serbia national football team is Nemanja Matić a member of
Serbia national football team
action filter_type
action find
entity Nemanja Matić
relation member of sports team
type national sports team
['Nemanja Matić', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?p WHERE { resource:Nemanja_Matić property:member_of_sports_team ?p . ?p rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q297603
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q182740,P19,c(Q56061))
action filter_type
action find
entity Q297603
relation P19
type Q56061
['Q182740', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q297603 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Nemanja Matić
action filter_type
action find
entity Nemanja Matić
relation place of birth
type administrative territorial entity
['Serbia national football team', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Nemanja_Matić property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q204472
SYSTEM
Šabac
Q204472
(Q182740,P19,c(Q56061))
action filter_type
action find
entity Q297603
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q182740', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q297603 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Šabac
Šabac is the place of birth of that person
Šabac
action filter_type
action find
entity Nemanja Matić
relation place of birth
type administrative territorial entity
['Serbia national football team', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Nemanja_Matić property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q371854
P35
Q502895 Q7275 Q1048835
USER
Which people are the heads of state of lesser number of states and political territories than Antonín Zápotocký ?
(c(Q7275)|c(Q1048835),P35,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q371854
relation P35
type Q7275
type Q1048835
[[{'concept': 'Q7275'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?f ) WHERE { { ?x property:P35 ?y . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q7275 } UNION { ?x property:P35 ?y . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1048835 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P35 resource:Q371854 . { { ?o rdf:type ontology:Q7275 } UNION { ?o rdf:type ontology:Q1048835 } } } } . FILTER ( ?f < ?h ) }
Antonín Zápotocký
action less
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Antonín Zápotocký
relation head of state
type state
type political territorial entity
[[{'concept': 'state'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?f ) WHERE { { ?x property:head_of_state ?y . ?y rdf:type ontology:common_name . ?x rdf:type ontology:state } UNION { ?x property:head_of_state ?y . ?y rdf:type ontology:common_name . ?x rdf:type ontology:political_territorial_entity } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:head_of_state resource:Antonín_Zápotocký . { { ?o rdf:type ontology:state } UNION { ?o rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?f < ?h ) }
[]
common name state political territorial entity
Q7747 Q76 Q320
SYSTEM
Vladimir Putin, Barack Obama, Michelle Bachelet
Q29574 Q298403 Q356990 Q6737124 Q6756617 Q310994 Q189732 Q57530 Q110330 Q709734 Q653611 Q153620 Q1428924 Q9151911 Q297950 Q157 Q214029 Q13107337 Q152511 Q463533 Q365209 Q3176299 Q152335 Q365196 Q217500 Q320 Q194000 Q361567 Q57534 Q329 Q45068 Q151929 Q153986 Q43179 Q56226 Q171977 Q57491 Q57319 Q312557 Q57258 Q57313 Q236503 Q57315 Q162269 Q167724 Q55758 Q1359023 Q18119638 Q1459699 Q57383 Q57380 Q57381 Q310775 Q57385 Q6809265 Q128332 Q629702 Q13631996 Q367825 Q1059948 Q57405 Q57407 Q57402 Q310536 Q16105972 Q237951 Q57543 Q296741 Q207728 Q181154 Q14362 Q259331 Q264210 Q444 Q167699 Q16765135 Q297825 Q472323 Q4413 Q57429 Q57537 Q38987 Q15382355 Q363392 Q855252 Q57473 Q5901842 Q57348 Q361173 Q12967 Q3956186 Q1245 Q57478 Q1241 Q1240 Q1242 Q181832 Q19216 Q172388 Q15031 Q1238 Q299100 Q188214 Q16988 Q1230 Q42939 Q1233 Q1235 Q294969 Q561837 Q12762303 Q57449 Q57363 Q57366 Q57441 Q40722 Q57444 Q57446 Q154444 Q284233 Q2503364 Q295212 Q76179 Q5448556 Q41117 Q445553 Q165210 Q355610 Q2625711 Q1464 Q968038 Q128416 Q29032 Q29207 Q310247 Q289285 Q2866 Q2042 Q155004 Q196070 Q208497 Q179858 Q2416022 Q34105 Q44819 Q23530 Q880065 Q7747 Q152306 Q57667 Q299152 Q57542 Q147989 Q122304 Q6762928 Q377935 Q334851 Q236853 Q17485808 Q57324 Q57327 Q57488 Q6707612 Q16669148 Q57480 Q57482 Q192049 Q12149 Q2960197 Q36788 Q502185 Q57390 Q57392 Q57394 Q57398 Q52878 Q2112764 Q57431 Q57434 Q57436 Q57438 Q344729 Q14356 Q2105 Q944643 Q2038 Q19581 Q52927 Q483672 Q12366816 Q16597 Q15850 Q373532 Q76 Q3911 Q3910 Q57509 Q57506 Q57502 Q284003 Q16908893 Q181261 Q37181 Q52890 Q43330 Q128894 Q76127 Q191045 Q12950 Q44329 Q296950 Q57340 Q332709 Q2665070 Q128911 Q324108 Q15029 Q218435 Q4250160 Q1079522 Q57298 Q235454 Q57295 Q4631 Q150747 Q4414 Q2498541 Q2677 Q188409 Q57276 Q57274 Q57272 Q57379 Q57376 Q17410819 Q57371 Q57279 Q5018756 Q15054736 Q9099 Q562209 Q230578 Q9094 Q1112792 Q3518013 Q612803 Q3318231 Q295141 Q314791 Q153832 Q2091478 Q52925 Q52924 Q29213 Q52926 Q485946 Q1231345 Q42410 Q69569 Q1568274 Q10665 Q2444338 Q23034482 Q18117069 Q156806 Q336285 Q602428 Q45785 Q15633683 Q172183 Q311413 Q58077 Q12911 Q76167 Q242651 Q336913 Q7176020 Q17995110 Q42852 Q171684 Q57553 Q511888 Q58600 Q57311 Q379148 Q173347 Q13593432 Q77233 Q504372 Q217442 Q313539 Q205993 Q381027 Q189575 Q22513 Q57331 Q165487 Q57336 Q157068 Q1455923 Q613051 Q471037 Q46809 Q399998 Q16004 Q5972763 Q57343 Q81215 Q57424 Q57422 Q57421 Q14345 Q14342 Q16193958 Q473247 Q327203 Q20022984 Q76156 Q1982245 Q455854 Q936831 Q153167 Q1855372 Q58132 Q212188 Q156781 Q156780 Q2185 Q57519 Q57512 Q57517 Q57555 Q17488307 Q273228 Q187697 Q151944 Q154946 Q5816 Q57550 Q311583 Q128413 Q152265 Q357539 Q563297 Q313350 Q559756 Q313355 Q17582456 Q206471 Q151729 Q541507 Q34453 Q57289 Q57360 Q57282 Q57287 Q57284 Q57460 Q57467 Q57464 Q57308 Q3246667 Q156349 Q37979 Q965155 Q57303 Q5983599 Q10707 Q26776 Q332157 Q239717 Q2357762 Q50678 Q450675 Q4715 Q105480 Q128307 Q312355 Q146496 Q188667 Q298577 Q2498455 Q3407316 Q57413 Q57410 Q19943 Q57418 Q20090884 Q21968142 Q317894 Q163813 Q57356 Q24692 Q456902 Q5220343 Q1707507 Q33168 Q2124 Q360462 Q18352991 Q599988 Q297057 Q229493 Q57526 Q373605 Q380187 Q17132 Q138048 Q154912 Q212751 Q4772220 Q212058 Q878336 Q562002 Q701484 Q233984 Q314464 Q1898405 Q12976 Q57261 Q12974 Q12973 Q12971 Q14257286 Q1459658 Q128371 Q319153 Q57634 Q314514 Q57306 Q299173 Q1228 Q1224 Q22368 Q206421 Q1220 Q310136 Q57338 Q39259 Q307871 Q174662 Q2757 Q57458 Q57350 Q57352 Q57452 Q57456 Q57454 Q183848 Q380985 Q15039600
(c(Q7275)|c(Q1048835),P35,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q371854
relation P35
type Q7275
type Q1048835
[ANSWERS] are the heads of state of lesser number of states and political territories than Antonín Zápotocký
[[{'concept': 'Q7275'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?f ) WHERE { { ?x property:P35 ?y . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q7275 } UNION { ?x property:P35 ?y . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1048835 } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:P35 resource:Q371854 . { { ?o rdf:type ontology:Q7275 } UNION { ?o rdf:type ontology:Q1048835 } } } } . FILTER ( ?f < ?h ) }
Beatrix of the Netherlands Umar II Michal Kováč Maithripala Sirisena Marcelo Rebelo de Sousa Patrick Hillery Leonid Kravchuk Gurbanguly Berdimuhamedow Ephraim Katzir Evaristo Carvalho Hipólito Mejía Amānullāh Khān Nicola Mancino Andrzej Duda R. Venkataraman François Hollande Kaarlo Juho Ståhlberg Giorgi Margvelashvili Eddie Fenech Adami Michel Temer Konstantinos Tsatsos Kolinda Grabar-Kitarović László Sólyom 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 Tokugawa Ieyasu Ricardo Martinelli Norodom Sihamoni V. V. Giri Ivo Josipović José Eduardo dos Santos Fernando Collor de Mello Salva Kiir Mayardit Jefferson Davis Guido de Marco Aleksander Kwaśniewski Raul Khadjimba Guerrino Zanotti Viktor Yushchenko Girma Wolde-Giorgis Goodluck Jonathan Haris Silajdžić Jean-Claude Duvalier Teodoro Obiang Nguema Mbasogo Mehbooba Mufti Hisham ibn Abd al-Malik Leonid Kuchma Chennamaneni Vidyasagar Rao Salman bin Abdulaziz Al Saud Khalifa bin Zayed Al Nahyan Susilo Bambang Yudhoyono Truong Tan Sang Daniel Ortega Francesco I Sforza Michel Kafando Douglas Hyde Sprent Dabwido Enrique Peña Nieto Mohammad Najibullah Muawiyah I Chun Doo-hwan Yusof bin Ishak Muawiya II Lech Wałęsa Ugo Mifsud Bonnici Isabel Saint Malo Željko Komšić Ranasinghe Premadasa Alpha Condé Danilo Medina Letsie III of Lesotho Tony Tan Keng Yam Hery Rajaonarimampianina Michel Aoun Bhumibol Adulyadej Joan Enric Vives Sicília Horacio Cartes Isaias Afewerki Sulejman Tihić Leopold II Sergio Mattarella Enrico De Nicola Nicolae Timofti Giovanni Gronchi Antonio Segni Luigi Einaudi Moshe Katsav Ma Ying-jeou Ashraf Ghani Ahmadzai Xi Jinping Giuseppe Saragat Zalman Shazar Mary Robinson Liu Shaoqi Francesco Cossiga Bronisław Komorowski Sandro Pertini Giovanni Leone Mohamed Ould Abdel Aziz Mauricio Macri Andrej Kiska Ian Khama Andry Rajoelina Emomali Rahmon Ram Baran Yadav Dilma Rousseff Choummaly Sayasone Pranab Mukherjee Grand Duke Michael Alexandrovich of Russia Sulayman ibn Abd al-Malik Pietro Grasso 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 Philippe of Belgium Uhuru Kenyatta Tupou VI Urho Kekkonen Raimonds Vējonis Hosni Mubarak Suharto Dmitry Medvedev Héctor García Godoy Vladimir Putin Carl Gustaf Emil Mannerheim Dési Bouterse Emil Constantinescu Filip Vujanović Joaquín Balaguer Nitish Kumar Marie Louise Coleiro Preca Yang Shangkun Zail Singh Ludovico Sforza Aguila Salah Issa Blaise Compaoré Hassanal Bolkiah Jakaya Kikwete Lydia Emerencia Patrice Talon Abdrabbuh Mansour Hadi Mahamadou Issoufou Yun Posun Thein Sein Charles Savarin Abd al-Malik ibn Marwan Andrey Vorobyov Ismaïl Omar Guelleh Armando Guebuza Nursultan Nazarbayev Aníbal Cavaco Silva Gustaf VI Adolf of Sweden Nicos Anastasiades Tomislav Nikolić Václav Klaus Gjorge Ivanov Macky Sall Christos Sartzetakis Park Chung-hee Jacques Chirac Mladen Ivanić François Mitterrand Ratael Correa Charles XIV John of Sweden Ali Abdullah Saleh Kersti Kaljulaid Jiang Zemin Oleksandr Turchynov Michail Stasinopoulos Barack Obama Albert II Albert II Atifete Jahjaga Andris Bērziņš George Abela Al-Walid I José Mário Vaz Charles Albert of Sardinia 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 Giovanni Spadolini Jozo Križanović Ezer Weizman Ibrahim Boubacar Keïta Hu Jintao Zviad Gamsakhurdia Tion Otang Erasme Louis Surlet de Chokier Abdullah of Saudi Arabia K. R. Narayanan Ivan Gašparovič Mohamed Morsi Wilhelmina of the Netherlands Faure Gnassingbé Rogvolod Wilhelm II Yevgeny Shevchuk 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 Cesare Merzagora Fernando Henrique Cardoso José Mujica Anna Maria Muccioli N. Chandrababu Naidu Serzh Sargsyan Joko Widodo Chaim Herzog Yazid II Alcide De Gasperi Ioannis Alevras Charles XV of Sweden Oscar II of Sweden Tarja Halonen Oscar I of Sweden Itamar Franco Paul Kagame Evo Morales Sardar Muhammad Yaqoob Khan Hage Geingob Kim Jong-il Mirko Šarović Taaneti Mamau 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 Roh Tae-woo Neelam Sanjiva Reddy Peter Mutharika Jimmy Morales Abdullah Gül Rhee Syng-man Mohammed VI of Morocco Leonard Petrosyan Friedrich III of Germany Juan Manuel Santos Jean-Pierre Bemba Éamon de Valera Adly Mansour Frederick III, Elector of Saxony Ye Jianying Yazid I Beji Caid el Sebsi William Gopallawa Pedro Pablo Kuczynski Ion Iliescu Zhu De Qaboos bin Said al Said Ahmet Necdet Sezer Ali Khamenei Lord Mountbatten Takakazu Ishii Robert Kocharyan Inayatullah Khan Raúl Castro Wee Kim Wee Henri, Grand Duke of Luxembourg Jacobo Majluta Azar Pierre Nkurunziza Petar Stoyanov Manuel Serifo Nhamadjo Donald Ramotar Tsakhiagiin Elbegdorj Roh Moo-hyun Lee Myung-bak Bidhya Bhandari Habibullāh Kalakāni Seán T. O'Kelly Ameenah Gurib-Fakim Bacharuddin Jusuf Habibie Ismail Shammout Reuven Rivlin Salvador Sánchez Cerén Valdas Adamkus Tamim bin Hamad Al Thani Nicolás Maduro S. R. Nathan Mário Soares Jorge Sampaio Georges Pompidou Taur Matan Ruak Michel Martelly Jorge Carlos Fonseca Sabah Al-Ahmad Al-Jaber Al-Sabah Aleksandr Zakharchenko Amintore Fanfani François Duvalier Leonel Fernández el ladron Juliana of the Netherlands Mao Zedong Abdul Halim of Kedah Yitzhak Navon Yazid III Mohammed Zahir Shah Gian Galeazzo Visconti Baron Waqa Choi Kyu-ha Dragan Čović Alexander Ankvab Ihor Plotnytskiy Borut Pahor Süleyman Demirel Arkadi Ghukasyan Boris Yeltsin Toomas Hendrik Ilves Hamad bin Khalifa Al Thani Jacob Zuma Harald V of Norway Ólafur Ragnar Grímsson Ernest Bai Koroma János Áder Abdullah II of Jordan Abdelaziz Bouteflika Abdul Hamid Sarvepalli Radhakrishnan Akihito Teburoro Tito Karolos Papoulias Luis Guillermo Solís Robert Mugabe Momčilo Krajišnik Shankar Dayal Sharma Pearlette Louisy Izyaslav of Polotsk John Mahama Francis Moncef Marzouki Kenneth Kaunda Al-Walid II Bakir Izetbegović Stjepan Mesić Burhanuddin Rabbani Marwan I 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 Eliud Williams Kalvakuntla Chandrashekar Valéry Giscard d'Estaing Bako Sahakyan Edgar Lungu Roch Marc Christian Kaboré Frederick Chiluba Nino Burjanadze Bujar Nishani Epeli Nailatikau Ahmed Mahamoud Silanyo Soong Ching-ling Park Geun-hye Olav V of Norway Algirdas Brazauskas Anthony Carmona Levy Mwanawasa Gianfranco Terenzi Salvador Jorge Blanco Klaus Iohannis Tsai Ing-wen Tokugawa Hidetada Konijeti Rosaiah Baudouin of Belgium Georgi Parvanov Albert I Leopold III Leopold I Mamnoon Hussain Viktor Yanukovych Marwan II Hassan Sheikh Mohamud Hashim Thaçi Gian Galeazzo Sforza Jalal Talabani Michael Sata Oscar Luigi Scalfaro Carlo Azeglio Ciampi Chen Shui-bian Konstantinos Stephanopoulos Giorgio Napolitano Nebojša Radmanović Mahinda Rajapaksa Recep Tayyip Erdoğan Abdel Fattah el-Sisi Mary McAleese Lech Kaczyński Ikililou Dhoinine Idriss Déby Hamad bin Isa Al Khalifa François Bozizé Anote Tong Hans-Adam II, Prince of Liechtenstein Alija Izetbegović Aleksandras Stulginskis Gian Carlo Capicchioni
Vladimir Putin, Barack Obama and Michelle Bachelet are the heads of state of lesser number of states and political territories than Antonín Zápotocký
Vladimir Putin Barack Obama Michelle Bachelet
action less
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Antonín Zápotocký
relation head of state
type state
type political territorial entity
[[{'concept': 'state'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?x ) AS ?f ) WHERE { { ?x property:head_of_state ?y . ?y rdf:type ontology:common_name . ?x rdf:type ontology:state } UNION { ?x property:head_of_state ?y . ?y rdf:type ontology:common_name . ?x rdf:type ontology:political_territorial_entity } } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { ?o property:head_of_state resource:Antonín_Zápotocký . { { ?o rdf:type ontology:state } UNION { ?o rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?f < ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1354851
P35
Q502895 Q7275 Q1048835
USER
And what about John Kerr?
(c(Q7275)|c(Q1048835),P35,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q1354851
relation P35
type Q7275
type Q1048835
[[{'concept': 'Q7275'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?i WHERE { { ?i rdf:type ontology:Q502895 . ?m rdf:type ontology:Q7275 . ?m property:P35 ?i } UNION { ?m property:P35 ?i . ?m rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q502895 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:P35 resource:Q1354851 . { { ?a rdf:type ontology:Q7275 } UNION { ?a rdf:type ontology:Q1048835 } } } } . FILTER ( ?d < ?o ) }
John Kerr
action less
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity John Kerr
relation head of state
type state
type political territorial entity
[[{'concept': 'state'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?i WHERE { { ?i rdf:type ontology:common_name . ?m rdf:type ontology:state . ?m property:head_of_state ?i } UNION { ?m property:head_of_state ?i . ?m rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:common_name } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:head_of_state resource:John_Kerr . { { ?a rdf:type ontology:state } UNION { ?a rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?d < ?o ) }
[]
common name state political territorial entity
Q7747 Q76 Q320
SYSTEM
Vladimir Putin, Barack Obama, Michelle Bachelet
Q29574 Q298403 Q356990 Q6737124 Q6756617 Q310994 Q189732 Q57530 Q110330 Q709734 Q653611 Q153620 Q1428924 Q9151911 Q297950 Q157 Q214029 Q13107337 Q152511 Q463533 Q365209 Q3176299 Q152335 Q365196 Q217500 Q320 Q194000 Q361567 Q57534 Q329 Q45068 Q151929 Q153986 Q43179 Q56226 Q171977 Q57491 Q57319 Q312557 Q57258 Q57313 Q236503 Q57315 Q162269 Q167724 Q55758 Q1359023 Q18119638 Q1459699 Q57383 Q57380 Q57381 Q310775 Q57385 Q6809265 Q128332 Q629702 Q13631996 Q367825 Q1059948 Q57405 Q57407 Q57402 Q310536 Q16105972 Q237951 Q57543 Q296741 Q207728 Q181154 Q14362 Q259331 Q264210 Q444 Q167699 Q16765135 Q297825 Q472323 Q4413 Q57429 Q57537 Q38987 Q15382355 Q363392 Q855252 Q57473 Q5901842 Q57348 Q361173 Q12967 Q3956186 Q1245 Q57478 Q1241 Q1240 Q1242 Q181832 Q19216 Q172388 Q15031 Q1238 Q299100 Q188214 Q16988 Q1230 Q42939 Q1233 Q1235 Q294969 Q561837 Q12762303 Q57449 Q57363 Q57366 Q57441 Q40722 Q57444 Q57446 Q154444 Q284233 Q2503364 Q295212 Q76179 Q5448556 Q41117 Q445553 Q165210 Q355610 Q2625711 Q1464 Q968038 Q128416 Q29032 Q29207 Q310247 Q289285 Q2866 Q2042 Q155004 Q196070 Q208497 Q179858 Q2416022 Q34105 Q44819 Q23530 Q880065 Q7747 Q152306 Q57667 Q299152 Q57542 Q147989 Q122304 Q6762928 Q377935 Q334851 Q236853 Q17485808 Q57324 Q57327 Q57488 Q6707612 Q16669148 Q57480 Q57482 Q192049 Q12149 Q2960197 Q36788 Q502185 Q57390 Q57392 Q57394 Q57398 Q52878 Q2112764 Q57431 Q57434 Q57436 Q57438 Q344729 Q14356 Q2105 Q944643 Q2038 Q19581 Q52927 Q483672 Q12366816 Q16597 Q15850 Q373532 Q76 Q3911 Q3910 Q57509 Q57506 Q57502 Q284003 Q16908893 Q181261 Q37181 Q52890 Q43330 Q128894 Q76127 Q191045 Q12950 Q44329 Q296950 Q57340 Q332709 Q2665070 Q128911 Q324108 Q15029 Q218435 Q4250160 Q1079522 Q57298 Q235454 Q57295 Q4631 Q150747 Q4414 Q2498541 Q2677 Q188409 Q57276 Q57274 Q57272 Q57379 Q57376 Q17410819 Q57371 Q57279 Q5018756 Q15054736 Q9099 Q562209 Q230578 Q9094 Q1112792 Q3518013 Q612803 Q3318231 Q295141 Q314791 Q153832 Q2091478 Q52925 Q52924 Q29213 Q52926 Q485946 Q1231345 Q42410 Q69569 Q1568274 Q10665 Q2444338 Q23034482 Q18117069 Q156806 Q336285 Q602428 Q45785 Q15633683 Q172183 Q311413 Q58077 Q12911 Q76167 Q242651 Q336913 Q7176020 Q17995110 Q42852 Q171684 Q57553 Q511888 Q58600 Q57311 Q379148 Q173347 Q13593432 Q77233 Q504372 Q217442 Q313539 Q205993 Q381027 Q189575 Q22513 Q57331 Q165487 Q57336 Q157068 Q1455923 Q613051 Q471037 Q46809 Q399998 Q16004 Q5972763 Q57343 Q81215 Q57424 Q57422 Q57421 Q14345 Q14342 Q16193958 Q473247 Q327203 Q20022984 Q76156 Q1982245 Q455854 Q936831 Q153167 Q1855372 Q58132 Q212188 Q156781 Q156780 Q2185 Q57519 Q57512 Q57517 Q57555 Q17488307 Q273228 Q187697 Q151944 Q154946 Q5816 Q57550 Q311583 Q128413 Q152265 Q357539 Q563297 Q313350 Q559756 Q313355 Q17582456 Q206471 Q151729 Q541507 Q34453 Q57289 Q57360 Q57282 Q57287 Q57284 Q57460 Q57467 Q57464 Q57308 Q3246667 Q156349 Q37979 Q965155 Q57303 Q5983599 Q10707 Q26776 Q332157 Q239717 Q2357762 Q50678 Q450675 Q4715 Q105480 Q128307 Q312355 Q146496 Q188667 Q298577 Q2498455 Q3407316 Q57413 Q57410 Q19943 Q57418 Q20090884 Q21968142 Q317894 Q163813 Q57356 Q24692 Q456902 Q5220343 Q1707507 Q33168 Q2124 Q360462 Q18352991 Q599988 Q297057 Q229493 Q57526 Q373605 Q380187 Q17132 Q138048 Q154912 Q212751 Q4772220 Q212058 Q878336 Q562002 Q701484 Q233984 Q314464 Q1898405 Q12976 Q57261 Q12974 Q12973 Q12971 Q14257286 Q1459658 Q128371 Q319153 Q57634 Q314514 Q57306 Q299173 Q1228 Q1224 Q22368 Q206421 Q1220 Q310136 Q57338 Q39259 Q307871 Q174662 Q2757 Q57458 Q57350 Q57352 Q57452 Q57456 Q57454 Q183848 Q380985 Q15039600
(c(Q7275)|c(Q1048835),P35,c(Q502895))
action less
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q1354851
relation P35
type Q7275
type Q1048835
[ANSWERS]
[[{'concept': 'Q7275'}, {'concept': 'Q1048835'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?i WHERE { { ?i rdf:type ontology:Q502895 . ?m rdf:type ontology:Q7275 . ?m property:P35 ?i } UNION { ?m property:P35 ?i . ?m rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q502895 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:P35 resource:Q1354851 . { { ?a rdf:type ontology:Q7275 } UNION { ?a rdf:type ontology:Q1048835 } } } } . FILTER ( ?d < ?o ) }
Beatrix of the Netherlands Umar II Michal Kováč Maithripala Sirisena Marcelo Rebelo de Sousa Patrick Hillery Leonid Kravchuk Gurbanguly Berdimuhamedow Ephraim Katzir Evaristo Carvalho Hipólito Mejía Amānullāh Khān Nicola Mancino Andrzej Duda R. Venkataraman François Hollande Kaarlo Juho Ståhlberg Giorgi Margvelashvili Eddie Fenech Adami Michel Temer Konstantinos Tsatsos Kolinda Grabar-Kitarović László Sólyom 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 Tokugawa Ieyasu Ricardo Martinelli Norodom Sihamoni V. V. Giri Ivo Josipović José Eduardo dos Santos Fernando Collor de Mello Salva Kiir Mayardit Jefferson Davis Guido de Marco Aleksander Kwaśniewski Raul Khadjimba Guerrino Zanotti Viktor Yushchenko Girma Wolde-Giorgis Goodluck Jonathan Haris Silajdžić Jean-Claude Duvalier Teodoro Obiang Nguema Mbasogo Mehbooba Mufti Hisham ibn Abd al-Malik Leonid Kuchma Chennamaneni Vidyasagar Rao Salman bin Abdulaziz Al Saud Khalifa bin Zayed Al Nahyan Susilo Bambang Yudhoyono Truong Tan Sang Daniel Ortega Francesco I Sforza Michel Kafando Douglas Hyde Sprent Dabwido Enrique Peña Nieto Mohammad Najibullah Muawiyah I Chun Doo-hwan Yusof bin Ishak Muawiya II Lech Wałęsa Ugo Mifsud Bonnici Isabel Saint Malo Željko Komšić Ranasinghe Premadasa Alpha Condé Danilo Medina Letsie III of Lesotho Tony Tan Keng Yam Hery Rajaonarimampianina Michel Aoun Bhumibol Adulyadej Joan Enric Vives Sicília Horacio Cartes Isaias Afewerki Sulejman Tihić Leopold II Sergio Mattarella Enrico De Nicola Nicolae Timofti Giovanni Gronchi Antonio Segni Luigi Einaudi Moshe Katsav Ma Ying-jeou Ashraf Ghani Ahmadzai Xi Jinping Giuseppe Saragat Zalman Shazar Mary Robinson Liu Shaoqi Francesco Cossiga Bronisław Komorowski Sandro Pertini Giovanni Leone Mohamed Ould Abdel Aziz Mauricio Macri Andrej Kiska Ian Khama Andry Rajoelina Emomali Rahmon Ram Baran Yadav Dilma Rousseff Choummaly Sayasone Pranab Mukherjee Grand Duke Michael Alexandrovich of Russia Sulayman ibn Abd al-Malik Pietro Grasso 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 Philippe of Belgium Uhuru Kenyatta Tupou VI Urho Kekkonen Raimonds Vējonis Hosni Mubarak Suharto Dmitry Medvedev Héctor García Godoy Vladimir Putin Carl Gustaf Emil Mannerheim Dési Bouterse Emil Constantinescu Filip Vujanović Joaquín Balaguer Nitish Kumar Marie Louise Coleiro Preca Yang Shangkun Zail Singh Ludovico Sforza Aguila Salah Issa Blaise Compaoré Hassanal Bolkiah Jakaya Kikwete Lydia Emerencia Patrice Talon Abdrabbuh Mansour Hadi Mahamadou Issoufou Yun Posun Thein Sein Charles Savarin Abd al-Malik ibn Marwan Andrey Vorobyov Ismaïl Omar Guelleh Armando Guebuza Nursultan Nazarbayev Aníbal Cavaco Silva Gustaf VI Adolf of Sweden Nicos Anastasiades Tomislav Nikolić Václav Klaus Gjorge Ivanov Macky Sall Christos Sartzetakis Park Chung-hee Jacques Chirac Mladen Ivanić François Mitterrand Ratael Correa Charles XIV John of Sweden Ali Abdullah Saleh Kersti Kaljulaid Jiang Zemin Oleksandr Turchynov Michail Stasinopoulos Barack Obama Albert II Albert II Atifete Jahjaga Andris Bērziņš George Abela Al-Walid I José Mário Vaz Charles Albert of Sardinia 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 Giovanni Spadolini Jozo Križanović Ezer Weizman Ibrahim Boubacar Keïta Hu Jintao Zviad Gamsakhurdia Tion Otang Erasme Louis Surlet de Chokier Abdullah of Saudi Arabia K. R. Narayanan Ivan Gašparovič Mohamed Morsi Wilhelmina of the Netherlands Faure Gnassingbé Rogvolod Wilhelm II Yevgeny Shevchuk 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 Cesare Merzagora Fernando Henrique Cardoso José Mujica Anna Maria Muccioli N. Chandrababu Naidu Serzh Sargsyan Joko Widodo Chaim Herzog Yazid II Alcide De Gasperi Ioannis Alevras Charles XV of Sweden Oscar II of Sweden Tarja Halonen Oscar I of Sweden Itamar Franco Paul Kagame Evo Morales Sardar Muhammad Yaqoob Khan Hage Geingob Kim Jong-il Mirko Šarović Taaneti Mamau 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 Roh Tae-woo Neelam Sanjiva Reddy Peter Mutharika Jimmy Morales Abdullah Gül Rhee Syng-man Mohammed VI of Morocco Leonard Petrosyan Friedrich III of Germany Juan Manuel Santos Jean-Pierre Bemba Éamon de Valera Adly Mansour Frederick III, Elector of Saxony Ye Jianying Yazid I Beji Caid el Sebsi William Gopallawa Pedro Pablo Kuczynski Ion Iliescu Zhu De Qaboos bin Said al Said Ahmet Necdet Sezer Ali Khamenei Lord Mountbatten Takakazu Ishii Robert Kocharyan Inayatullah Khan Raúl Castro Wee Kim Wee Henri, Grand Duke of Luxembourg Jacobo Majluta Azar Pierre Nkurunziza Petar Stoyanov Manuel Serifo Nhamadjo Donald Ramotar Tsakhiagiin Elbegdorj Roh Moo-hyun Lee Myung-bak Bidhya Bhandari Habibullāh Kalakāni Seán T. O'Kelly Ameenah Gurib-Fakim Bacharuddin Jusuf Habibie Ismail Shammout Reuven Rivlin Salvador Sánchez Cerén Valdas Adamkus Tamim bin Hamad Al Thani Nicolás Maduro S. R. Nathan Mário Soares Jorge Sampaio Georges Pompidou Taur Matan Ruak Michel Martelly Jorge Carlos Fonseca Sabah Al-Ahmad Al-Jaber Al-Sabah Aleksandr Zakharchenko Amintore Fanfani François Duvalier Leonel Fernández el ladron Juliana of the Netherlands Mao Zedong Abdul Halim of Kedah Yitzhak Navon Yazid III Mohammed Zahir Shah Gian Galeazzo Visconti Baron Waqa Choi Kyu-ha Dragan Čović Alexander Ankvab Ihor Plotnytskiy Borut Pahor Süleyman Demirel Arkadi Ghukasyan Boris Yeltsin Toomas Hendrik Ilves Hamad bin Khalifa Al Thani Jacob Zuma Harald V of Norway Ólafur Ragnar Grímsson Ernest Bai Koroma János Áder Abdullah II of Jordan Abdelaziz Bouteflika Abdul Hamid Sarvepalli Radhakrishnan Akihito Teburoro Tito Karolos Papoulias Luis Guillermo Solís Robert Mugabe Momčilo Krajišnik Shankar Dayal Sharma Pearlette Louisy Izyaslav of Polotsk John Mahama Francis Moncef Marzouki Kenneth Kaunda Al-Walid II Bakir Izetbegović Stjepan Mesić Burhanuddin Rabbani Marwan I 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 Eliud Williams Kalvakuntla Chandrashekar Valéry Giscard d'Estaing Bako Sahakyan Edgar Lungu Roch Marc Christian Kaboré Frederick Chiluba Nino Burjanadze Bujar Nishani Epeli Nailatikau Ahmed Mahamoud Silanyo Soong Ching-ling Park Geun-hye Olav V of Norway Algirdas Brazauskas Anthony Carmona Levy Mwanawasa Gianfranco Terenzi Salvador Jorge Blanco Klaus Iohannis Tsai Ing-wen Tokugawa Hidetada Konijeti Rosaiah Baudouin of Belgium Georgi Parvanov Albert I Leopold III Leopold I Mamnoon Hussain Viktor Yanukovych Marwan II Hassan Sheikh Mohamud Hashim Thaçi Gian Galeazzo Sforza Jalal Talabani Michael Sata Oscar Luigi Scalfaro Carlo Azeglio Ciampi Chen Shui-bian Konstantinos Stephanopoulos Giorgio Napolitano Nebojša Radmanović Mahinda Rajapaksa Recep Tayyip Erdoğan Abdel Fattah el-Sisi Mary McAleese Lech Kaczyński Ikililou Dhoinine Idriss Déby Hamad bin Isa Al Khalifa François Bozizé Anote Tong Hans-Adam II, Prince of Liechtenstein Alija Izetbegović Aleksandras Stulginskis Gian Carlo Capicchioni
Vladimir Putin Barack Obama Michelle Bachelet
action less
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity John Kerr
relation head of state
type state
type political territorial entity
[[{'concept': 'state'}, {'concept': 'political territorial entity'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?i WHERE { { ?i rdf:type ontology:common_name . ?m rdf:type ontology:state . ?m property:head_of_state ?i } UNION { ?m property:head_of_state ?i . ?m rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:common_name } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { ?a property:head_of_state resource:John_Kerr . { { ?a rdf:type ontology:state } UNION { ?a rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?d < ?o ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q173669 Q7747
P19 P937
Q56061
USER
Which administrative territories are the work locations of Vladimir Putin or were Wayne Weiler born in ?
OR((Q7747,P937,c(Q56061)), (Q173669,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7747
relation P937
action find
entity Q173669
relation P19
type Q56061
{'OR': [['Q7747', 'P937', {'concept': 'Q56061'}], ['Q173669', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . { { resource:Q7747 property:P937 ?v } UNION { resource:Q173669 property:P19 ?v } } }
Wayne Weiler Vladimir Putin
action filter_type
action union
action find
entity Vladimir Putin
relation work location
action find
entity Wayne Weiler
relation place of birth
type administrative territorial entity
{'OR': [['Vladimir Putin', 'work location', {'concept': 'administrative territorial entity'}], ['Wayne Weiler', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . { { resource:Vladimir_Putin property:work_location ?v } UNION { resource:Wayne_Weiler property:place_of_birth ?v } } }
[]
administrative territorial entity
Q649 Q16556
SYSTEM
Moscow, Phoenix
Q649 Q16556
OR((Q7747,P937,c(Q56061)), (Q173669,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7747
relation P937
action find
entity Q173669
relation P19
type Q56061
[ANSWERS] are the work locations of Vladimir Putin or were Wayne Weiler born in
{'OR': [['Q7747', 'P937', {'concept': 'Q56061'}], ['Q173669', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . { { resource:Q7747 property:P937 ?v } UNION { resource:Q173669 property:P19 ?v } } }
Moscow Phoenix
Moscow and Phoenix are the work locations of Vladimir Putin or were Wayne Weiler born in
Moscow Phoenix
action filter_type
action union
action find
entity Vladimir Putin
relation work location
action find
entity Wayne Weiler
relation place of birth
type administrative territorial entity
{'OR': [['Vladimir Putin', 'work location', {'concept': 'administrative territorial entity'}], ['Wayne Weiler', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . { { resource:Vladimir_Putin property:work_location ?v } UNION { resource:Wayne_Weiler property:place_of_birth ?v } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q173669
P1196
Q1931388
USER
What situation did Wayne Weiler die in ?
(Q649,P1196,c(Q1931388)) (Q16556,P1196,c(Q1931388))
action filter_type
action find
entity Q173669
relation P1196
type Q1931388
['Q649', 'P1196', {'concept': 'Q1931388'}] ['Q16556', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?s WHERE { resource:Q173669 property:P1196 ?s . ?s rdf:type ontology:Q1931388 }
Wayne Weiler
action filter_type
action find
entity Wayne Weiler
relation manner of death
type cause of death
['Moscow', 'manner of death', {'concept': 'cause of death'}] ['Phoenix', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?s WHERE { resource:Wayne_Weiler property:manner_of_death ?s . ?s rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q649,P1196,c(Q1931388)) (Q16556,P1196,c(Q1931388))
action filter_type
action find
entity Q173669
relation P1196
type Q1931388
Wayne Weiler died of [ANSWER]
['Q649', 'P1196', {'concept': 'Q1931388'}] ['Q16556', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?s WHERE { resource:Q173669 property:P1196 ?s . ?s rdf:type ontology:Q1931388 }
natural causes
Wayne Weiler died of natural causes
natural causes
action filter_type
action find
entity Wayne Weiler
relation manner of death
type cause of death
['Moscow', 'manner of death', {'concept': 'cause of death'}] ['Phoenix', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?s WHERE { resource:Wayne_Weiler property:manner_of_death ?s . ?s rdf:type ontology:cause_of_death }
[]