Simple Question (Direct)
Simple Question
Q4954055
P39
Q12737077
USER
Which occupation was a position held by Brad King ?
(Q4954055,P39,c(Q12737077))
action filter_type
action find
entity Q4954055
relation P39
type Q12737077
['Q4954055', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q4954055 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
Brad King
action filter_type
action find
entity Brad King
relation position held
type occupation
['Brad King', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Brad_King property:position_held ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q18810381
SYSTEM
member of the Utah House of Representatives
Q18810381
(Q4954055,P39,c(Q12737077))
action filter_type
action find
entity Q4954055
relation P39
type Q12737077
The [ANSWER] was a position held by Brad King
['Q4954055', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q4954055 property:P39 ?p . ?p rdf:type ontology:Q12737077 }
member of the Utah House of Representatives
The member of the Utah House of Representatives was a position held by Brad King
member of the Utah House of Representatives
action filter_type
action find
entity Brad King
relation position held
type occupation
['Brad King', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Brad_King property:position_held ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4954055
P102
Q7210356
USER
Which parties do that person belong to ?
(Q18810381,P102,c(Q7210356))
action filter_type
action find
entity Q4954055
relation P102
type Q7210356
['Q18810381', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7210356 . resource:Q4954055 property:P102 ?j }
Brad King
action filter_type
action find
entity Brad King
relation member of political party
type political organization
['member of the Utah House of Representatives', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_organization . resource:Brad_King property:member_of_political_party ?j }
[]
political organization
Q29552 Q7902341
SYSTEM
Democratic Party, Utah Democratic Party
Q29552 Q7902341
(Q18810381,P102,c(Q7210356))
action filter_type
action find
entity Q4954055
relation P102
type Q7210356
That person belong [ANSWERS]
['Q18810381', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7210356 . resource:Q4954055 property:P102 ?j }
Democratic Party Utah Democratic Party
That person belong Democratic Party and Utah Democratic Party
Democratic Party Utah Democratic Party
action filter_type
action find
entity Brad King
relation member of political party
type political organization
['member of the Utah House of Representatives', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:political_organization . resource:Brad_King property:member_of_political_party ?j }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q165487
P35
Q502895 Q1048835 Q7275
USER
How many people have the highest formal authority in around the same number of political territories or states as Ahmet Necdet Sezer ?
(c(Q1048835)|c(Q7275),P35,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q165487
relation P35
type Q1048835
type Q7275
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:P35 resource:Q165487 . { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?j = ?m ) }
Ahmet Necdet Sezer
action count
action approx
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 state
action count
action filter_multi_types
action find_reverse
entity Ahmet Necdet Sezer
relation head of state
type political territorial entity
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:political_territorial_entity ) ( ontology:state ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:head_of_state resource:Ahmet_Necdet_Sezer . { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:state ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?j = ?m ) }
[]
common name political territorial entity state
SYSTEM
451
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(Q1048835)|c(Q7275),P35,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q165487
relation P35
type Q1048835
type Q7275
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:Q1048835 ) ( ontology:Q7275 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:P35 resource:Q165487 . { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?j = ?m ) }
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
451
action count
action approx
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 state
action count
action filter_multi_types
action find_reverse
entity Ahmet Necdet Sezer
relation head of state
type political territorial entity
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:political_territorial_entity ) ( ontology:state ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) WHERE { ?k property:head_of_state resource:Ahmet_Necdet_Sezer . { ?k rdf:type ?n . VALUES ( ?n ) { ( ontology:state ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?j = ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q207728
P35
Q502895 Q1048835 Q7275
USER
And how about Mohammad Najibullah?
(c(Q1048835)|c(Q7275),P35,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q207728
relation P35
type Q1048835
type Q7275
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { { ?c rdf:type ontology:Q7275 } UNION { ?c rdf:type ontology:Q1048835 } } . ?c property:P35 resource:Q207728 } } . FILTER ( ?d = ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) ?l WHERE { { ?x property:P35 ?l . ?x rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q502895 } UNION { ?x property:P35 ?l . ?l rdf:type ontology:Q502895 . ?x rdf:type ontology:Q7275 } } GROUP BY ?l } }
Mohammad Najibullah
action count
action approx
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 state
action count
action filter_multi_types
action find_reverse
entity Mohammad Najibullah
relation head of state
type political territorial entity
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { { ?c rdf:type ontology:state } UNION { ?c rdf:type ontology:political_territorial_entity } } . ?c property:head_of_state resource:Mohammad_Najibullah } } . FILTER ( ?d = ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) ?l WHERE { { ?x property:head_of_state ?l . ?x rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:common_name } UNION { ?x property:head_of_state ?l . ?l rdf:type ontology:common_name . ?x rdf:type ontology:state } } GROUP BY ?l } }
[]
common name political territorial entity state
SYSTEM
451
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(Q1048835)|c(Q7275),P35,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q1048835
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action count
action filter_multi_types
action find_reverse
entity Q207728
relation P35
type Q1048835
type Q7275
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { { ?c rdf:type ontology:Q7275 } UNION { ?c rdf:type ontology:Q1048835 } } . ?c property:P35 resource:Q207728 } } . FILTER ( ?d = ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) ?l WHERE { { ?x property:P35 ?l . ?x rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q502895 } UNION { ?x property:P35 ?l . ?l rdf:type ontology:Q502895 . ?x rdf:type ontology:Q7275 } } GROUP BY ?l } }
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
451
action count
action approx
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 state
action count
action filter_multi_types
action find_reverse
entity Mohammad Najibullah
relation head of state
type political territorial entity
type state
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?h ) WHERE { { { ?c rdf:type ontology:state } UNION { ?c rdf:type ontology:political_territorial_entity } } . ?c property:head_of_state resource:Mohammad_Najibullah } } . FILTER ( ?d = ?h ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?d ) ?l WHERE { { ?x property:head_of_state ?l . ?x rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:common_name } UNION { ?x property:head_of_state ?l . ?l rdf:type ontology:common_name . ?x rdf:type ontology:state } } GROUP BY ?l } }
[]