Simple Question (Direct)
Simple Question
Q6028966
P53
Q8436
USER
What dynasty does Infante Fernando, Lord of Eça belong to ?
(Q6028966,P53,c(Q8436))
action filter_type
action find
entity Q6028966
relation P53
type Q8436
['Q6028966', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?u WHERE { resource:Q6028966 property:P53 ?u . ?u rdf:type ontology:Q8436 }
Infante Fernando, Lord of Eça
action filter_type
action find
entity Infante Fernando, Lord of Eça
relation noble family
type family
['Infante Fernando, Lord of Eça', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?u WHERE { resource:Infante_Fernando,_Lord_of_Eça property:noble_family ?u . ?u rdf:type ontology:family }
[]
family
Q1642657
SYSTEM
House of Burgundy
Q1642657
(Q6028966,P53,c(Q8436))
action filter_type
action find
entity Q6028966
relation P53
type Q8436
Infante Fernando , Lord of Eça belongs to the [ANSWER]
['Q6028966', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?u WHERE { resource:Q6028966 property:P53 ?u . ?u rdf:type ontology:Q8436 }
House of Burgundy
Infante Fernando , Lord of Eça belongs to the House of Burgundy
House of Burgundy
action filter_type
action find
entity Infante Fernando, Lord of Eça
relation noble family
type family
['Infante Fernando, Lord of Eça', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?u WHERE { resource:Infante_Fernando,_Lord_of_Eça property:noble_family ?u . ?u rdf:type ontology:family }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q112077 Q6028966
P40
Q502895
USER
Which people are an offsprings of Infante Fernando, Lord of Eça or Cymburgis of Masovia ?
OR((Q6028966,P40,c(Q502895)), (Q112077,P40,c(Q502895)))
action filter_type
action union
action find
entity Q6028966
relation P40
action find
entity Q112077
relation P40
type Q502895
{'OR': [['Q6028966', 'P40', {'concept': 'Q502895'}], ['Q112077', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . { { resource:Q6028966 property:P40 ?j } UNION { resource:Q112077 property:P40 ?j } } }
Cymburgis of Masovia Infante Fernando, Lord of Eça
action filter_type
action union
action find
entity Infante Fernando, Lord of Eça
relation child
action find
entity Cymburgis of Masovia
relation child
type common name
{'OR': [['Infante Fernando, Lord of Eça', 'child', {'concept': 'common name'}], ['Cymburgis of Masovia', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . { { resource:Infante_Fernando,_Lord_of_Eça property:child ?j } UNION { resource:Cymburgis_of_Masovia property:child ?j } } }
[]
common name
Q150966 Q23478642 Q114431 Q79176 Q23477878 Q23477991 Q17318327 Q145606 Q23478330
SYSTEM
Frederick III, Holy Roman Emperor, Catarina de Eça, Catherine of Austria, Margaret of Austria, Electress of Saxony, Beatriz de Eça, Fernando de Eça, Alcaide-Mor de Vila Viçosa, Pedro de Eça, Albert VI, Archduke of Austria, Garcia de Eça, Alcaide-Mor de Muge
Q150966 Q23478642 Q114431 Q79176 Q23477878 Q23477991 Q17318327 Q145606 Q23478330
OR((Q6028966,P40,c(Q502895)), (Q112077,P40,c(Q502895)))
action filter_type
action union
action find
entity Q6028966
relation P40
action find
entity Q112077
relation P40
type Q502895
[ANSWERS]
{'OR': [['Q6028966', 'P40', {'concept': 'Q502895'}], ['Q112077', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . { { resource:Q6028966 property:P40 ?j } UNION { resource:Q112077 property:P40 ?j } } }
Frederick III, Holy Roman Emperor Catarina de Eça Catherine of Austria Margaret of Austria, Electress of Saxony Beatriz de Eça Fernando de Eça, Alcaide-Mor de Vila Viçosa Pedro de Eça Albert VI, Archduke of Austria Garcia de Eça, Alcaide-Mor de Muge
Frederick III, Holy Roman Emperor, Catarina de Eça, Catherine of Austria, Margaret of Austria, Electress of Saxony, Beatriz de Eça, Fernando de Eça, Alcaide-Mor de Vila Viçosa, Pedro de Eça, Albert VI, Archduke of Austria and Garcia de Eça, Alcaide-Mor de Muge are an offsprings of Infante Fernando, Lord of Eça or Cymburgis of Masovia
Frederick III, Holy Roman Emperor Catarina de Eça Catherine of Austria Margaret of Austria, Electress of Saxony Beatriz de Eça Fernando de Eça, Alcaide-Mor de Vila Viçosa Pedro de Eça Albert VI, Archduke of Austria Garcia de Eça, Alcaide-Mor de Muge
action filter_type
action union
action find
entity Infante Fernando, Lord of Eça
relation child
action find
entity Cymburgis of Masovia
relation child
type common name
{'OR': [['Infante Fernando, Lord of Eça', 'child', {'concept': 'common name'}], ['Cymburgis of Masovia', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . { { resource:Infante_Fernando,_Lord_of_Eça property:child ?j } UNION { resource:Cymburgis_of_Masovia property:child ?j } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 2168 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2168
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:P1303 ?l . ?k rdf:type ontology:Q502895 . ?l rdf:type ontology:Q34379 } GROUP BY ?l } . FILTER ( ?n = 2168 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2168
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:instrument ?l . ?k rdf:type ontology:common_name . ?l rdf:type ontology:musical_instrument } GROUP BY ?l } . FILTER ( ?n = 2168 ) }
[]
musical instrument common name
SYSTEM
5
Q46185 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2168
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:P1303 ?l . ?k rdf:type ontology:Q502895 . ?l rdf:type ontology:Q34379 } GROUP BY ?l } . FILTER ( ?n = 2168 ) }
bass guitar trumpet cello organ drum kit
5
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2168
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?k ) AS ?n ) WHERE { ?k property:instrument ?l . ?k rdf:type ontology:common_name . ?l rdf:type ontology:musical_instrument } GROUP BY ?l } . FILTER ( ?n = 2168 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q150966
P9
Q502895
USER
Who have Frederick III, Holy Roman Emperor as thier sibling ?
(Q150966,P9,c(Q502895))
action filter_type
action find
entity Q150966
relation P9
type Q502895
['Q150966', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q150966 property:P9 ?t }
Frederick III, Holy Roman Emperor
action filter_type
action find
entity Frederick III, Holy Roman Emperor
relation sister
type common name
['Frederick III, Holy Roman Emperor', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Frederick_III,_Holy_Roman_Emperor property:sister ?t }
[]
common name
Q114431 Q79176
SYSTEM
Catherine of Austria, Margaret of Austria, Electress of Saxony
Q114431 Q79176
(Q150966,P9,c(Q502895))
action filter_type
action find
entity Q150966
relation P9
type Q502895
[ANSWERS]
['Q150966', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . resource:Q150966 property:P9 ?t }
Catherine of Austria Margaret of Austria, Electress of Saxony
Catherine of Austria and Margaret of Austria, Electress of Saxony have Frederick III, Holy Roman Emperor as thier sibling
Catherine of Austria Margaret of Austria, Electress of Saxony
action filter_type
action find
entity Frederick III, Holy Roman Emperor
relation sister
type common name
['Frederick III, Holy Roman Emperor', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . resource:Frederick_III,_Holy_Roman_Emperor property:sister ?t }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5932922
Q502895
USER
And how about Herman Lamm?
(Q5932922,P9,c(Q502895))
action filter_type
action find
entity Q5932922
relation P9
type Q502895
['Q5932922', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q5932922 property:P9 ?h . ?h rdf:type ontology:Q502895 }
Herman Lamm
action filter_type
action find
entity Herman Lamm
relation sister
type common name
['Herman Lamm', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Herman_Lamm property:sister ?h . ?h rdf:type ontology:common_name }
[]
common name
Q4990958
SYSTEM
Emma Zorn
Q4990958
(Q5932922,P9,c(Q502895))
action filter_type
action find
entity Q5932922
relation P9
type Q502895
[ANSWER]
['Q5932922', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q5932922 property:P9 ?h . ?h rdf:type ontology:Q502895 }
Emma Zorn
Emma Zorn
action filter_type
action find
entity Herman Lamm
relation sister
type common name
['Herman Lamm', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Herman_Lamm property:sister ?h . ?h rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q218435
P35
Q502895 Q7275 Q35798
USER
Which people are the heads of state of more number of states and executive branches than Zviad Gamsakhurdia ?
(c(Q7275)|c(Q35798),P35,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action count
action filter_multi_types
action find_reverse
entity Q218435
relation P35
type Q7275
type Q35798
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?m WHERE { { ?v rdf:type ontology:Q35798 . ?m rdf:type ontology:Q502895 . ?v property:P35 ?m } UNION { ?v property:P35 ?m . ?m rdf:type ontology:Q502895 . ?v rdf:type ontology:Q7275 } } GROUP BY ?m } . FILTER ( ?q > ?n ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b property:P35 resource:Q218435 . { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:Q7275 ) ( ontology:Q35798 ) } } } } }
Zviad Gamsakhurdia
action greater
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 executive branch
action count
action filter_multi_types
action find_reverse
entity Zviad Gamsakhurdia
relation head of state
type state
type executive branch
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?m WHERE { { ?v rdf:type ontology:executive_branch . ?m rdf:type ontology:common_name . ?v property:head_of_state ?m } UNION { ?v property:head_of_state ?m . ?m rdf:type ontology:common_name . ?v rdf:type ontology:state } } GROUP BY ?m } . FILTER ( ?q > ?n ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b property:head_of_state resource:Zviad_Gamsakhurdia . { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:state ) ( ontology:executive_branch ) } } } } }
[]
common name state executive branch
Q7747 Q36233 Q352
SYSTEM
Vladimir Putin, Václav Havel, Adolf Hitler
Q19830768 Q310994 Q19830761 Q189732 Q1428924 Q154952 Q297950 Q19464383 Q214029 Q152511 Q19830715 Q152335 Q45068 Q16105901 Q57319 Q152274 Q312557 Q57258 Q162269 Q151667 Q167724 Q157651 Q237951 Q19831439 Q78492 Q19831437 Q19831432 Q259331 Q151087 Q19810371 Q167699 Q472323 Q400961 Q187149 Q855252 Q3956186 Q1245 Q1241 Q1240 Q1242 Q153688 Q1238 Q188214 Q1230 Q42939 Q1233 Q1235 Q16849387 Q2503364 Q295212 Q2610 Q19831452 Q29207 Q179858 Q34105 Q7747 Q152306 Q379203 Q150642 Q299152 Q36233 Q154936 Q334851 Q555531 Q57488 Q290786 Q773874 Q886786 Q7244117 Q6127060 Q2112764 Q2646 Q76437 Q93427 Q19830746 Q76 Q280856 Q57502 Q181261 Q44329 Q157099 Q332709 Q34464 Q334923 Q235454 Q57295 Q4631 Q57279 Q562209 Q8467 Q2601 Q2602 Q2607 Q39619 Q153832 Q163945 Q30487 Q223183 Q213791 Q336913 Q156502 Q257425 Q468847 Q173347 Q13593432 Q160318 Q355053 Q210329 Q205993 Q189575 Q157068 Q57232 Q269412 Q6127112 Q19831185 Q19831184 Q19831183 Q157121 Q399998 Q81215 Q19831457 Q327203 Q156494 Q152463 Q455854 Q212188 Q168691 Q273228 Q371854 Q661663 Q19861344 Q7726 Q150620 Q6225811 Q57287 Q310000 Q57464 Q2667 Q156349 Q332157 Q159585 Q4715 Q37731 Q43915 Q334111 Q19628885 Q296054 Q57526 Q154912 Q352 Q130834 Q57261 Q14257286 Q150652 Q150712 Q229300 Q19831445 Q1228 Q1224 Q1220 Q57338 Q174662 Q65917 Q9682 Q2628 Q19831449
(c(Q7275)|c(Q35798),P35,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action count
action filter_multi_types
action find_reverse
entity Q218435
relation P35
type Q7275
type Q35798
[ANSWERS] are the heads of state of more number of states and executive branches than Zviad Gamsakhurdia
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?m WHERE { { ?v rdf:type ontology:Q35798 . ?m rdf:type ontology:Q502895 . ?v property:P35 ?m } UNION { ?v property:P35 ?m . ?m rdf:type ontology:Q502895 . ?v rdf:type ontology:Q7275 } } GROUP BY ?m } . FILTER ( ?q > ?n ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b property:P35 resource:Q218435 . { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:Q7275 ) ( ontology:Q35798 ) } } } } }
Thomas Currie Patrick Hillery Jonathan Lambert Leonid Kravchuk Nicola Mancino Willem-Alexander of the Netherlands R. Venkataraman John Woolley Kaarlo Juho Ståhlberg Eddie Fenech Adami Robert Ben Madison László Sólyom Carl XVI Gustaf of Sweden Paul Delprat Norodom Sihamoni Edvard Beneš V. V. Giri Ivo Josipović Jefferson Davis Ferdinand I of Bulgaria Guido de Marco Gustáv Husák Douglas Hyde Carlo I Bertoleoni Tomáš Garrigue Masaryk Paolo I Bertoleoni Giuseppe Bertoleoni Yusof bin Ishak Jérôme Bonaparte Vít Jedlička Ugo Mifsud Bonnici Ranasinghe Premadasa Ahmad bin Yahya Umberto II of Italy Bhumibol Adulyadej Sergio Mattarella Enrico De Nicola Giovanni Gronchi Antonio Segni Luigi Einaudi Umberto I of Italy Giuseppe Saragat Mary Robinson Francesco Cossiga Bronisław Komorowski Sandro Pertini Giovanni Leone Jam Nizamuddin II Pietro Grasso Rosen Plevneliev Willi Stoph Carlo II Bertoleoni Sauli Niinistö Urho Kekkonen Hosni Mubarak Vladimir Putin Carl Gustaf Emil Mannerheim Khieu Samphan Vittorio Emanuele III Emil Constantinescu Václav Havel Arnulf of Carinthia Zail Singh Paddy Roy Bates Jakaya Kikwete Stefan Dragutin Maria I of Portugal Orélie-Antoine de Tounens Prince Karl Emich of Leiningen Jam Feruzudin Nicos Anastasiades Friedrich Ebert Karl Dönitz Archduke John of Austria King Louis I of Talossa Barack Obama George VI George Abela Charles Albert of Sardinia Bashar al-Assad Louis the Child Giovanni Spadolini Philip III of Spain Abu Bakr K. R. Narayanan Ivan Gašparovič Mohamed Morsi Traian Băsescu Cesare Merzagora Umar ibn Al-Khattāb Manfred Gerlach Egon Krenz Erich Honecker Alī ibn Abī Ṭālib Alcide De Gasperi Yahya Muhammad Hamid ed-Din Mikhail Gorbachev Peter II of Yugoslavia Eric Bloodaxe Neelam Sanjiva Reddy Emil Hácha Gojong of the Korean Empire Oswiu of Northumbria Éamon de Valera Adly Mansour Norodom Sihanouk Michael Jeffery Yuan Shikai William Gopallawa Ion Iliescu Lord Mountbatten Sabine Bergmann-Pohl George V Jam Unar Georgette Bertin-Pourchet Gabrielle Pourchet Georges Pourchet Conrad I of Germany Wee Kim Wee Petar Stoyanov Tonino Bertoleoni Seán T. O'Kelly Antonín Novotný Louis the German Reuven Rivlin S. R. Nathan Victor Emmanuel II of Savoy Amintore Fanfani Antonín Zápotocký Stephen Vladislav II of Syrmia Niels Vermeersch Joseph Bonaparte Henry I the Fowler John Charlton Rudge Harald V of Norway Ludvík Svoboda Abdullah II of Jordan Paul von Hindenburg Sarvepalli Radhakrishnan Shankar Dayal Sharma Boris III of Bulgaria Moncef Marzouki Uthman ibn Affan Otto I the Great Sunjong of the Korean Empire Michael Bates Klement Gottwald Bujar Nishani Olav V of Norway Adolf Hitler Francis I of Austria Georgi Parvanov Mamnoon Hussain Wilhelm I of Germany Charles the Fat Quentin Bryce Mariangela Bertoleoni Oscar Luigi Scalfaro Carlo Azeglio Ciampi Giorgio Napolitano Mahinda Rajapaksa Mary McAleese Wilhelm Pieck Elizabeth II Walter Ulbricht Paolo II Bertoleoni
Vladimir Putin, Václav Havel and Adolf Hitler are the heads of state of more number of states and executive branches than Zviad Gamsakhurdia
Vladimir Putin Václav Havel Adolf Hitler
action greater
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 executive branch
action count
action filter_multi_types
action find_reverse
entity Zviad Gamsakhurdia
relation head of state
type state
type executive branch
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?q ) ?m WHERE { { ?v rdf:type ontology:executive_branch . ?m rdf:type ontology:common_name . ?v property:head_of_state ?m } UNION { ?v property:head_of_state ?m . ?m rdf:type ontology:common_name . ?v rdf:type ontology:state } } GROUP BY ?m } . FILTER ( ?q > ?n ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { ?b property:head_of_state resource:Zviad_Gamsakhurdia . { ?b rdf:type ?w . VALUES ( ?w ) { ( ontology:state ) ( ontology:executive_branch ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1260
P35
Q502895 Q7275 Q35798
USER
And how about Kurt Waldheim?
(c(Q7275)|c(Q35798),P35,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action count
action filter_multi_types
action find_reverse
entity Q1260
relation P35
type Q7275
type Q35798
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j property:P35 resource:Q1260 . { VALUES ( ?t ) { ( ontology:Q7275 ) ( ontology:Q35798 ) } . ?j rdf:type ?t } } } . FILTER ( ?c > ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?c ) WHERE { { ?i rdf:type ontology:Q502895 . ?v rdf:type ontology:Q7275 . ?v property:P35 ?i } UNION { ?v property:P35 ?i . ?i rdf:type ontology:Q502895 . ?v rdf:type ontology:Q35798 } } GROUP BY ?i } }
Kurt Waldheim
action greater
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 executive branch
action count
action filter_multi_types
action find_reverse
entity Kurt Waldheim
relation head of state
type state
type executive branch
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j property:head_of_state resource:Kurt_Waldheim . { VALUES ( ?t ) { ( ontology:state ) ( ontology:executive_branch ) } . ?j rdf:type ?t } } } . FILTER ( ?c > ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?c ) WHERE { { ?i rdf:type ontology:common_name . ?v rdf:type ontology:state . ?v property:head_of_state ?i } UNION { ?v property:head_of_state ?i . ?i rdf:type ontology:common_name . ?v rdf:type ontology:executive_branch } } GROUP BY ?i } }
[]
common name state executive branch
Q7747 Q36233 Q352
SYSTEM
Vladimir Putin, Václav Havel, Adolf Hitler
Q19830768 Q310994 Q19830761 Q189732 Q1428924 Q154952 Q297950 Q19464383 Q214029 Q152511 Q19830715 Q152335 Q45068 Q16105901 Q57319 Q152274 Q312557 Q57258 Q162269 Q151667 Q167724 Q157651 Q237951 Q19831439 Q78492 Q19831437 Q19831432 Q259331 Q151087 Q19810371 Q167699 Q472323 Q400961 Q187149 Q855252 Q3956186 Q1245 Q1241 Q1240 Q1242 Q153688 Q1238 Q188214 Q1230 Q42939 Q1233 Q1235 Q16849387 Q2503364 Q295212 Q2610 Q19831452 Q29207 Q179858 Q34105 Q7747 Q152306 Q379203 Q150642 Q299152 Q36233 Q154936 Q334851 Q555531 Q57488 Q290786 Q773874 Q886786 Q7244117 Q6127060 Q2112764 Q2646 Q76437 Q93427 Q19830746 Q76 Q280856 Q57502 Q181261 Q44329 Q157099 Q332709 Q34464 Q334923 Q235454 Q57295 Q4631 Q57279 Q562209 Q8467 Q2601 Q2602 Q2607 Q39619 Q153832 Q163945 Q30487 Q223183 Q213791 Q336913 Q156502 Q257425 Q468847 Q173347 Q13593432 Q160318 Q355053 Q210329 Q205993 Q189575 Q157068 Q57232 Q269412 Q6127112 Q19831185 Q19831184 Q19831183 Q157121 Q399998 Q81215 Q19831457 Q327203 Q156494 Q152463 Q455854 Q212188 Q168691 Q273228 Q371854 Q661663 Q19861344 Q7726 Q150620 Q6225811 Q57287 Q310000 Q57464 Q2667 Q156349 Q332157 Q159585 Q4715 Q37731 Q43915 Q334111 Q19628885 Q296054 Q57526 Q154912 Q352 Q130834 Q57261 Q14257286 Q150652 Q150712 Q229300 Q19831445 Q1228 Q1224 Q1220 Q57338 Q174662 Q65917 Q9682 Q2628 Q19831449
(c(Q7275)|c(Q35798),P35,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
action count
action filter_multi_types
action find_reverse
entity Q1260
relation P35
type Q7275
type Q35798
[ANSWERS]
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j property:P35 resource:Q1260 . { VALUES ( ?t ) { ( ontology:Q7275 ) ( ontology:Q35798 ) } . ?j rdf:type ?t } } } . FILTER ( ?c > ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?c ) WHERE { { ?i rdf:type ontology:Q502895 . ?v rdf:type ontology:Q7275 . ?v property:P35 ?i } UNION { ?v property:P35 ?i . ?i rdf:type ontology:Q502895 . ?v rdf:type ontology:Q35798 } } GROUP BY ?i } }
Thomas Currie Patrick Hillery Jonathan Lambert Leonid Kravchuk Nicola Mancino Willem-Alexander of the Netherlands R. Venkataraman John Woolley Kaarlo Juho Ståhlberg Eddie Fenech Adami Robert Ben Madison László Sólyom Carl XVI Gustaf of Sweden Paul Delprat Norodom Sihamoni Edvard Beneš V. V. Giri Ivo Josipović Jefferson Davis Ferdinand I of Bulgaria Guido de Marco Gustáv Husák Douglas Hyde Carlo I Bertoleoni Tomáš Garrigue Masaryk Paolo I Bertoleoni Giuseppe Bertoleoni Yusof bin Ishak Jérôme Bonaparte Vít Jedlička Ugo Mifsud Bonnici Ranasinghe Premadasa Ahmad bin Yahya Umberto II of Italy Bhumibol Adulyadej Sergio Mattarella Enrico De Nicola Giovanni Gronchi Antonio Segni Luigi Einaudi Umberto I of Italy Giuseppe Saragat Mary Robinson Francesco Cossiga Bronisław Komorowski Sandro Pertini Giovanni Leone Jam Nizamuddin II Pietro Grasso Rosen Plevneliev Willi Stoph Carlo II Bertoleoni Sauli Niinistö Urho Kekkonen Hosni Mubarak Vladimir Putin Carl Gustaf Emil Mannerheim Khieu Samphan Vittorio Emanuele III Emil Constantinescu Václav Havel Arnulf of Carinthia Zail Singh Paddy Roy Bates Jakaya Kikwete Stefan Dragutin Maria I of Portugal Orélie-Antoine de Tounens Prince Karl Emich of Leiningen Jam Feruzudin Nicos Anastasiades Friedrich Ebert Karl Dönitz Archduke John of Austria King Louis I of Talossa Barack Obama George VI George Abela Charles Albert of Sardinia Bashar al-Assad Louis the Child Giovanni Spadolini Philip III of Spain Abu Bakr K. R. Narayanan Ivan Gašparovič Mohamed Morsi Traian Băsescu Cesare Merzagora Umar ibn Al-Khattāb Manfred Gerlach Egon Krenz Erich Honecker Alī ibn Abī Ṭālib Alcide De Gasperi Yahya Muhammad Hamid ed-Din Mikhail Gorbachev Peter II of Yugoslavia Eric Bloodaxe Neelam Sanjiva Reddy Emil Hácha Gojong of the Korean Empire Oswiu of Northumbria Éamon de Valera Adly Mansour Norodom Sihanouk Michael Jeffery Yuan Shikai William Gopallawa Ion Iliescu Lord Mountbatten Sabine Bergmann-Pohl George V Jam Unar Georgette Bertin-Pourchet Gabrielle Pourchet Georges Pourchet Conrad I of Germany Wee Kim Wee Petar Stoyanov Tonino Bertoleoni Seán T. O'Kelly Antonín Novotný Louis the German Reuven Rivlin S. R. Nathan Victor Emmanuel II of Savoy Amintore Fanfani Antonín Zápotocký Stephen Vladislav II of Syrmia Niels Vermeersch Joseph Bonaparte Henry I the Fowler John Charlton Rudge Harald V of Norway Ludvík Svoboda Abdullah II of Jordan Paul von Hindenburg Sarvepalli Radhakrishnan Shankar Dayal Sharma Boris III of Bulgaria Moncef Marzouki Uthman ibn Affan Otto I the Great Sunjong of the Korean Empire Michael Bates Klement Gottwald Bujar Nishani Olav V of Norway Adolf Hitler Francis I of Austria Georgi Parvanov Mamnoon Hussain Wilhelm I of Germany Charles the Fat Quentin Bryce Mariangela Bertoleoni Oscar Luigi Scalfaro Carlo Azeglio Ciampi Giorgio Napolitano Mahinda Rajapaksa Mary McAleese Wilhelm Pieck Elizabeth II Walter Ulbricht Paolo II Bertoleoni
Vladimir Putin Václav Havel Adolf Hitler
action greater
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 executive branch
action count
action filter_multi_types
action find_reverse
entity Kurt Waldheim
relation head of state
type state
type executive branch
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j property:head_of_state resource:Kurt_Waldheim . { VALUES ( ?t ) { ( ontology:state ) ( ontology:executive_branch ) } . ?j rdf:type ?t } } } . FILTER ( ?c > ?l ) . { SELECT DISTINCT ?i ( COUNT ( ?v ) AS ?c ) WHERE { { ?i rdf:type ontology:common_name . ?v rdf:type ontology:state . ?v property:head_of_state ?i } UNION { ?v property:head_of_state ?i . ?i rdf:type ontology:common_name . ?v rdf:type ontology:executive_branch } } GROUP BY ?i } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P3091
Q3745054 Q502895 Q502895
USER
How many people rides on a exactly 3 horse breeds and people ?
(c(Q502895),P3091,c(Q3745054)|c(Q502895))
action count
action equal
action union
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action find_tuple_counts
relation P3091
type Q502895
type Q502895
value 3
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q3745054'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?r WHERE { VALUES ( ?q ) { ( ontology:Q3745054 ) ( ontology:Q502895 ) } . ?v rdf:type ?q } GROUP BY ?r } . FILTER ( ?d = 3 ) }
action count
action equal
action union
action find_tuple_counts
relation mount
type common name
type horse breed
action find_tuple_counts
relation mount
type common name
type common name
value 3
[{'concept': 'common name'}, 'mount', [{'concept': 'horse breed'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?r WHERE { VALUES ( ?q ) { ( ontology:horse_breed ) ( ontology:common_name ) } . ?v rdf:type ?q } GROUP BY ?r } . FILTER ( ?d = 3 ) }
[]
horse breed common name common name
SYSTEM
1
Q2057115
(c(Q502895),P3091,c(Q3745054)|c(Q502895))
action count
action equal
action union
action find_tuple_counts
relation P3091
type Q502895
type Q3745054
action find_tuple_counts
relation P3091
type Q502895
type Q502895
value 3
[ANSWER]
[{'concept': 'Q502895'}, 'P3091', [{'concept': 'Q3745054'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?r WHERE { VALUES ( ?q ) { ( ontology:Q3745054 ) ( ontology:Q502895 ) } . ?v rdf:type ?q } GROUP BY ?r } . FILTER ( ?d = 3 ) }
Patrice Delaveau
1
action count
action equal
action union
action find_tuple_counts
relation mount
type common name
type horse breed
action find_tuple_counts
relation mount
type common name
type common name
value 3
[{'concept': 'common name'}, 'mount', [{'concept': 'horse breed'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) ?r WHERE { VALUES ( ?q ) { ( ontology:horse_breed ) ( ontology:common_name ) } . ?v rdf:type ?q } GROUP BY ?r } . FILTER ( ?d = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7747
P127
Q502895
USER
Which person is under posessision of Vladimir Putin ?
(c(Q502895),P127,Q7747)
action filter_type
action find_reverse
entity Q7747
relation P127
type Q502895
[{'concept': 'Q502895'}, 'P127', 'Q7747']
SELECT DISTINCT ?c WHERE { ?c property:P127 resource:Q7747 . ?c rdf:type ontology:Q502895 }
Vladimir Putin
action filter_type
action find_reverse
entity Vladimir Putin
relation owned by
type common name
[{'concept': 'common name'}, 'owned by', 'Vladimir Putin']
SELECT DISTINCT ?c WHERE { ?c property:owned_by resource:Vladimir_Putin . ?c rdf:type ontology:common_name }
[]
common name
Q4985986
SYSTEM
Buffy
Q4985986
(c(Q502895),P127,Q7747)
action filter_type
action find_reverse
entity Q7747
relation P127
type Q502895
[ANSWER] is under posessision of Vladimir Putin
[{'concept': 'Q502895'}, 'P127', 'Q7747']
SELECT DISTINCT ?c WHERE { ?c property:P127 resource:Q7747 . ?c rdf:type ontology:Q502895 }
Buffy
Buffy is under posessision of Vladimir Putin
Buffy
action filter_type
action find_reverse
entity Vladimir Putin
relation owned by
type common name
[{'concept': 'common name'}, 'owned by', 'Vladimir Putin']
SELECT DISTINCT ?c WHERE { ?c property:owned_by resource:Vladimir_Putin . ?c rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7747
P25
Q502895
USER
Which person was the mother of Vladimir Putin ?
(Q7747,P25,c(Q502895))
action filter_type
action find
entity Q7747
relation P25
type Q502895
['Q7747', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q7747 property:P25 ?r . ?r rdf:type ontology:Q502895 }
Vladimir Putin
action filter_type
action find
entity Vladimir Putin
relation mother
type common name
['Vladimir Putin', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Vladimir_Putin property:mother ?r . ?r rdf:type ontology:common_name }
[]
common name
Q19300864
SYSTEM
Maria Ivanovna Putina
Q19300864
(Q7747,P25,c(Q502895))
action filter_type
action find
entity Q7747
relation P25
type Q502895
[ANSWER] was the mother of Vladimir Putin
['Q7747', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q7747 property:P25 ?r . ?r rdf:type ontology:Q502895 }
Maria Ivanovna Putina
Maria Ivanovna Putina was the mother of Vladimir Putin
Maria Ivanovna Putina
action filter_type
action find
entity Vladimir Putin
relation mother
type common name
['Vladimir Putin', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:Vladimir_Putin property:mother ?r . ?r rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q7747
P1038
Q502895
USER
How many people are related to Vladimir Putin ?
(c(Q502895),P1038,Q7747)
action count
action filter_type
action find_reverse
entity Q7747
relation P1038
type Q502895
[{'concept': 'Q502895'}, 'P1038', 'Q7747']
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m rdf:type ontology:Q502895 . ?m property:P1038 resource:Q7747 }
Vladimir Putin
action count
action filter_type
action find_reverse
entity Vladimir Putin
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Vladimir Putin']
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m rdf:type ontology:common_name . ?m property:relative resource:Vladimir_Putin }
[]
common name
SYSTEM
3
Q23664531 Q27303667 Q15087614
(c(Q502895),P1038,Q7747)
action count
action filter_type
action find_reverse
entity Q7747
relation P1038
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1038', 'Q7747']
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m rdf:type ontology:Q502895 . ?m property:P1038 resource:Q7747 }
Kirill Shamalov Igor Alexandrovich Putin Roman Putin
3
action count
action filter_type
action find_reverse
entity Vladimir Putin
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Vladimir Putin']
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { ?m rdf:type ontology:common_name . ?m property:relative resource:Vladimir_Putin }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q333887
P1038
Q502895
USER
Which person is a relative of William Grenfell, 1st Baron Desborough ?
(c(Q502895),P1038,Q333887)
action filter_type
action find_reverse
entity Q333887
relation P1038
type Q502895
[{'concept': 'Q502895'}, 'P1038', 'Q333887']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P1038 resource:Q333887 }
William Grenfell, 1st Baron Desborough
action filter_type
action find_reverse
entity William Grenfell, 1st Baron Desborough
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'William Grenfell, 1st Baron Desborough']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:relative resource:William_Grenfell,_1st_Baron_Desborough }
[]
common name
Q5343174
SYSTEM
Edward Grenfell, 1st Baron St Just
Q5343174
(c(Q502895),P1038,Q333887)
action filter_type
action find_reverse
entity Q333887
relation P1038
type Q502895
[ANSWER] is a relative of William Grenfell, 1st Baron Desborough
[{'concept': 'Q502895'}, 'P1038', 'Q333887']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P1038 resource:Q333887 }
Edward Grenfell, 1st Baron St Just
Edward Grenfell, 1st Baron St Just is a relative of William Grenfell, 1st Baron Desborough
Edward Grenfell, 1st Baron St Just
action filter_type
action find_reverse
entity William Grenfell, 1st Baron Desborough
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'William Grenfell, 1st Baron Desborough']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:relative resource:William_Grenfell,_1st_Baron_Desborough }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q5343174 Q333887
P1038
Q502895
USER
Is William Grenfell, 1st Baron Desborough a relative of Edward Grenfell, 1st Baron St Just ?
(Q5343174,P1038,Q333887)
action is_in
entity Q333887
action find
entity Q5343174
relation P1038
['Q5343174', 'P1038', 'Q333887']
ASK WHERE { resource:Q5343174 property:P1038 resource:Q333887 }
Edward Grenfell, 1st Baron St Just William Grenfell, 1st Baron Desborough
action is_in
entity William Grenfell, 1st Baron Desborough
action find
entity Edward Grenfell, 1st Baron St Just
relation relative
['Edward Grenfell, 1st Baron St Just', 'relative', 'William Grenfell, 1st Baron Desborough']
ASK WHERE { resource:Edward_Grenfell,_1st_Baron_St_Just property:relative resource:William_Grenfell,_1st_Baron_Desborough }
[]
common name
SYSTEM
YES
(Q5343174,P1038,Q333887)
action is_in
entity Q333887
action find
entity Q5343174
relation P1038
[ANSWER]
['Q5343174', 'P1038', 'Q333887']
ASK WHERE { resource:Q5343174 property:P1038 resource:Q333887 }
Yes
action is_in
entity William Grenfell, 1st Baron Desborough
action find
entity Edward Grenfell, 1st Baron St Just
relation relative
['Edward Grenfell, 1st Baron St Just', 'relative', 'William Grenfell, 1st Baron Desborough']
ASK WHERE { resource:Edward_Grenfell,_1st_Baron_St_Just property:relative resource:William_Grenfell,_1st_Baron_Desborough }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q4985986 Q7747
P127
Q502895
USER
Is Vladimir Putin the owner of that one ?
(Q4985986,P127,Q7747)
action is_in
entity Q7747
action find
entity Q4985986
relation P127
['Q4985986', 'P127', 'Q7747']
ASK WHERE { resource:Q4985986 property:P127 resource:Q7747 }
Buffy Vladimir Putin
action is_in
entity Vladimir Putin
action find
entity Buffy
relation owned by
['Buffy', 'owned by', 'Vladimir Putin']
ASK WHERE { resource:Buffy property:owned_by resource:Vladimir_Putin }
[]
common name
SYSTEM
YES
(Q4985986,P127,Q7747)
action is_in
entity Q7747
action find
entity Q4985986
relation P127
[ANSWER]
['Q4985986', 'P127', 'Q7747']
ASK WHERE { resource:Q4985986 property:P127 resource:Q7747 }
Yes
action is_in
entity Vladimir Putin
action find
entity Buffy
relation owned by
['Buffy', 'owned by', 'Vladimir Putin']
ASK WHERE { resource:Buffy property:owned_by resource:Vladimir_Putin }
[]