Simple Question (Direct)
Simple Question
Q2381948
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Jean-François Pescheux ?
(Q2381948,P27,c(Q15617994))
action filter_type
action find
entity Q2381948
relation P27
type Q15617994
['Q2381948', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q2381948 property:P27 ?k }
Jean-François Pescheux
action filter_type
action find
entity Jean-François Pescheux
relation country of citizenship
type designation for an administrative territorial entity
['Jean-François Pescheux', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jean-François_Pescheux property:country_of_citizenship ?k }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q2381948,P27,c(Q15617994))
action filter_type
action find
entity Q2381948
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Jean-François Pescheux
['Q2381948', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q2381948 property:P27 ?k }
France
France is the country of citizenship of Jean-François Pescheux
France
action filter_type
action find
entity Jean-François Pescheux
relation country of citizenship
type designation for an administrative territorial entity
['Jean-François Pescheux', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Jean-François_Pescheux property:country_of_citizenship ?k }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2381948
P54
Q1785271
USER
What is that person a member of ?
(Q142,P54,c(Q1785271))
action filter_type
action find
entity Q2381948
relation P54
type Q1785271
['Q142', 'P54', {'concept': 'Q1785271'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1785271 . resource:Q2381948 property:P54 ?n }
Jean-François Pescheux
action filter_type
action find
entity Jean-François Pescheux
relation member of sports team
type cycling team
['France', 'member of sports team', {'concept': 'cycling team'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:cycling_team . resource:Jean-François_Pescheux property:member_of_sports_team ?n }
[]
cycling team
Q2177540
SYSTEM
La Redoute-Cycles MBK
Q2177540
(Q142,P54,c(Q1785271))
action filter_type
action find
entity Q2381948
relation P54
type Q1785271
That person a member of is the [ANSWER]
['Q142', 'P54', {'concept': 'Q1785271'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1785271 . resource:Q2381948 property:P54 ?n }
La Redoute-Cycles MBK
That person a member of is the La Redoute-Cycles MBK
La Redoute-Cycles MBK
action filter_type
action find
entity Jean-François Pescheux
relation member of sports team
type cycling team
['France', 'member of sports team', {'concept': 'cycling team'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:cycling_team . resource:Jean-François_Pescheux property:member_of_sports_team ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2381948
P21
Q290
USER
Which sex does Jean-François Pescheux possess ?
(Q2381948,P21,c(Q290))
action filter_type
action find
entity Q2381948
relation P21
type Q290
['Q2381948', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q2381948 property:P21 ?o . ?o rdf:type ontology:Q290 }
Jean-François Pescheux
action filter_type
action find
entity Jean-François Pescheux
relation gender
type sex
['Jean-François Pescheux', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Jean-François_Pescheux property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2381948,P21,c(Q290))
action filter_type
action find
entity Q2381948
relation P21
type Q290
Jean-François Pescheux possesses un [ANSWER]
['Q2381948', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q2381948 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
Jean-François Pescheux possesses un male
male
action filter_type
action find
entity Jean-François Pescheux
relation gender
type sex
['Jean-François Pescheux', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Jean-François_Pescheux property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15417490
Q290
USER
And also tell me about Athanasoula Voulgaris?
(Q15417490,P21,c(Q290))
action filter_type
action find
entity Q15417490
relation P21
type Q290
['Q15417490', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q15417490 property:P21 ?q }
Athanasoula Voulgaris
action filter_type
action find
entity Athanasoula Voulgaris
relation gender
type sex
['Athanasoula Voulgaris', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Athanasoula_Voulgaris property:gender ?q }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q15417490,P21,c(Q290))
action filter_type
action find
entity Q15417490
relation P21
type Q290
[ANSWER]
['Q15417490', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q290 . resource:Q15417490 property:P21 ?q }
female
female
action filter_type
action find
entity Athanasoula Voulgaris
relation gender
type sex
['Athanasoula Voulgaris', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:sex . resource:Athanasoula_Voulgaris property:gender ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15417490
P9
Q502895
USER
Who had that one as their sibling ?
(c(Q502895),P9,Q6581072)
action filter_type
action find_reverse
entity Q15417490
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q6581072']
SELECT DISTINCT ?u WHERE { ?u property:P9 resource:Q15417490 . ?u rdf:type ontology:Q502895 }
Athanasoula Voulgaris
action filter_type
action find_reverse
entity Athanasoula Voulgaris
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'female']
SELECT DISTINCT ?u WHERE { ?u property:sister resource:Athanasoula_Voulgaris . ?u rdf:type ontology:common_name }
[]
common name
Q12875059 Q21038989 Q15417713
SYSTEM
Georgios D. Voulgaris, Eleni Voulgari, Lazaros Voulgaris
Q21038989 Q15417713 Q21039005 Q12875059
(c(Q502895),P9,Q6581072)
action filter_type
action find_reverse
entity Q15417490
relation P9
type Q502895
[ANSWERS] had that one as their sibling
[{'concept': 'Q502895'}, 'P9', 'Q6581072']
SELECT DISTINCT ?u WHERE { ?u property:P9 resource:Q15417490 . ?u rdf:type ontology:Q502895 }
Eleni Voulgari Lazaros Voulgaris Stamatina Voulgari Georgios D. Voulgaris
Georgios D. Voulgaris, Eleni Voulgari and Lazaros Voulgaris had that one as their sibling
Georgios D. Voulgaris Eleni Voulgari Lazaros Voulgaris
action filter_type
action find_reverse
entity Athanasoula Voulgaris
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'female']
SELECT DISTINCT ?u WHERE { ?u property:sister resource:Athanasoula_Voulgaris . ?u rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q142 Q49405
P706
Q15617994
USER
How many administrative territories are located in France or Franconian Lake District ?
(c(Q15617994),P706,Q142) (c(Q15617994),P706,Q49405)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P706
type Q15617994
action filter_type
action find_reverse
entity Q49405
relation P706
type Q15617994
[{'concept': 'Q15617994'}, 'P706', 'Q142'] [{'concept': 'Q15617994'}, 'P706', 'Q49405']
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { ?h property:P706 resource:Q142 . ?h rdf:type ontology:Q15617994 } UNION { ?h property:P706 resource:Q49405 . ?h rdf:type ontology:Q15617994 } }
France Franconian Lake District
action count
action union
action filter_type
action find_reverse
entity France
relation located on terrain feature
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Franconian Lake District
relation located on terrain feature
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', 'France'] [{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', 'Franconian Lake District']
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { ?h property:located_on_terrain_feature resource:France . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h property:located_on_terrain_feature resource:Franconian_Lake_District . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
10
Q525945 Q252320 Q31640 Q521132 Q520347 Q588957 Q525879 Q331886 Q267993 Q312335
(c(Q15617994),P706,Q142) (c(Q15617994),P706,Q49405)
action count
action union
action filter_type
action find_reverse
entity Q142
relation P706
type Q15617994
action filter_type
action find_reverse
entity Q49405
relation P706
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P706', 'Q142'] [{'concept': 'Q15617994'}, 'P706', 'Q49405']
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { ?h property:P706 resource:Q142 . ?h rdf:type ontology:Q15617994 } UNION { ?h property:P706 resource:Q49405 . ?h rdf:type ontology:Q15617994 } }
Pfofeld Pleinfeld Unterschwaningen Hilpoltstein Röttenbach, Roth Allersberg Haundorf Absberg Muhr am See Spalt
10
action count
action union
action filter_type
action find_reverse
entity France
relation located on terrain feature
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Franconian Lake District
relation located on terrain feature
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', 'France'] [{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', 'Franconian Lake District']
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { ?h property:located_on_terrain_feature resource:France . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h property:located_on_terrain_feature resource:Franconian_Lake_District . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q613051
P35
Q502895 Q7275 Q35798
USER
Which people are the heads of state of greater number of states or executive branches than Robert Kocharyan ?
(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 Q613051
relation P35
type Q7275
type Q35798
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?b ) WHERE { { ?v property:P35 ?f . ?f rdf:type ontology:Q502895 . ?v rdf:type ontology:Q7275 } UNION { ?v property:P35 ?f . ?f rdf:type ontology:Q502895 . ?v rdf:type ontology:Q35798 } } GROUP BY ?f } . FILTER ( ?b > ?j ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:P35 resource:Q613051 . { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:Q7275 ) ( ontology:Q35798 ) } } } } }
Robert Kocharyan
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 Robert Kocharyan
relation head of state
type state
type executive branch
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?b ) WHERE { { ?v property:head_of_state ?f . ?f rdf:type ontology:common_name . ?v rdf:type ontology:state } UNION { ?v property:head_of_state ?f . ?f rdf:type ontology:common_name . ?v rdf:type ontology:executive_branch } } GROUP BY ?f } . FILTER ( ?b > ?j ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:head_of_state resource:Robert_Kocharyan . { ?o rdf:type ?s . VALUES ( ?s ) { ( 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 Q613051
relation P35
type Q7275
type Q35798
[ANSWERS] are the heads of state of greater number of states or executive branches than Robert Kocharyan
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?b ) WHERE { { ?v property:P35 ?f . ?f rdf:type ontology:Q502895 . ?v rdf:type ontology:Q7275 } UNION { ?v property:P35 ?f . ?f rdf:type ontology:Q502895 . ?v rdf:type ontology:Q35798 } } GROUP BY ?f } . FILTER ( ?b > ?j ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:P35 resource:Q613051 . { ?o rdf:type ?s . VALUES ( ?s ) { ( 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 greater number of states or executive branches than Robert Kocharyan
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 Robert Kocharyan
relation head of state
type state
type executive branch
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?v ) AS ?b ) WHERE { { ?v property:head_of_state ?f . ?f rdf:type ontology:common_name . ?v rdf:type ontology:state } UNION { ?v property:head_of_state ?f . ?f rdf:type ontology:common_name . ?v rdf:type ontology:executive_branch } } GROUP BY ?f } . FILTER ( ?b > ?j ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?j ) WHERE { ?o property:head_of_state resource:Robert_Kocharyan . { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:state ) ( ontology:executive_branch ) } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q299173
P35
Q502895 Q7275 Q35798
USER
And also tell me about Michael Sata?
(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 Q299173
relation P35
type Q7275
type Q35798
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?k ) WHERE { { ?j rdf:type ontology:Q502895 . ?e rdf:type ontology:Q7275 . ?e property:P35 ?j } UNION { ?e property:P35 ?j . ?j rdf:type ontology:Q502895 . ?e rdf:type ontology:Q35798 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:P35 resource:Q299173 . { VALUES ( ?v ) { ( ontology:Q7275 ) ( ontology:Q35798 ) } . ?l rdf:type ?v } } } . FILTER ( ?k > ?b ) }
Michael Sata
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 Michael Sata
relation head of state
type state
type executive branch
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?k ) WHERE { { ?j rdf:type ontology:common_name . ?e rdf:type ontology:state . ?e property:head_of_state ?j } UNION { ?e property:head_of_state ?j . ?j rdf:type ontology:common_name . ?e rdf:type ontology:executive_branch } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:head_of_state resource:Michael_Sata . { VALUES ( ?v ) { ( ontology:state ) ( ontology:executive_branch ) } . ?l rdf:type ?v } } } . FILTER ( ?k > ?b ) }
[]
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 Q299173
relation P35
type Q7275
type Q35798
[ANSWERS]
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?k ) WHERE { { ?j rdf:type ontology:Q502895 . ?e rdf:type ontology:Q7275 . ?e property:P35 ?j } UNION { ?e property:P35 ?j . ?j rdf:type ontology:Q502895 . ?e rdf:type ontology:Q35798 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:P35 resource:Q299173 . { VALUES ( ?v ) { ( ontology:Q7275 ) ( ontology:Q35798 ) } . ?l rdf:type ?v } } } . FILTER ( ?k > ?b ) }
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 Michael Sata
relation head of state
type state
type executive branch
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?e ) AS ?k ) WHERE { { ?j rdf:type ontology:common_name . ?e rdf:type ontology:state . ?e property:head_of_state ?j } UNION { ?e property:head_of_state ?j . ?j rdf:type ontology:common_name . ?e rdf:type ontology:executive_branch } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:head_of_state resource:Michael_Sata . { VALUES ( ?v ) { ( ontology:state ) ( ontology:executive_branch ) } . ?l rdf:type ?v } } } . FILTER ( ?k > ?b ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7747
P488
Q7210356
USER
What is that person a chairperson of ?
(c(Q7210356),P488,Q7747)
action filter_type
action find_reverse
entity Q7747
relation P488
type Q7210356
[{'concept': 'Q7210356'}, 'P488', 'Q7747']
SELECT DISTINCT ?h WHERE { ?h property:P488 resource:Q7747 . ?h rdf:type ontology:Q7210356 }
Vladimir Putin
action filter_type
action find_reverse
entity Vladimir Putin
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Vladimir Putin']
SELECT DISTINCT ?h WHERE { ?h property:chairperson resource:Vladimir_Putin . ?h rdf:type ontology:political_organization }
[]
political organization
Clarification for simple ques.
Q352
SYSTEM
Did you mean Adolf Hitler ?
Q7747 Q36233 Q352
(c(Q7210356),P488,Q7747) (c(Q7210356),P488,Q36233) (c(Q7210356),P488,Q352)
[ANSWER]
[{'concept': 'Q7210356'}, 'P488', 'Q7747'] [{'concept': 'Q7210356'}, 'P488', 'Q36233'] [{'concept': 'Q7210356'}, 'P488', 'Q352']
SELECT DISTINCT ?h WHERE { ?h property:P488 resource:Q7747 . ?h rdf:type ontology:Q7210356 }
Vladimir Putin Václav Havel Adolf Hitler
Did you mean Adolf Hitler ?
Adolf Hitler
[{'concept': 'political organization'}, 'chairperson', 'Vladimir Putin'] [{'concept': 'political organization'}, 'chairperson', 'Václav Havel'] [{'concept': 'political organization'}, 'chairperson', 'Adolf Hitler']
SELECT DISTINCT ?h WHERE { ?h property:chairperson resource:Vladimir_Putin . ?h rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
USER
No, I meant Vladimir Putin. Could you tell me the answer for that?
(c(Q7210356),P488,Q7747)
Q7747
[{'concept': 'Q7210356'}, 'P488', 'Q7747']
[{'concept': 'political organization'}, 'chairperson', 'Vladimir Putin']
[]
Q730786
SYSTEM
All-Russia People's Front
Q730786
(c(Q7210356),P488,Q7747)
action filter_type
action find_reverse
entity Q7747
relation P488
type Q7210356
That person a chairperson of is the [ANSWER]
[{'concept': 'Q7210356'}, 'P488', 'Q7747']
SELECT DISTINCT ?h WHERE { ?h property:P488 resource:Q7747 . ?h rdf:type ontology:Q7210356 }
All-Russia People's Front
That person a chairperson of is the All-Russia People's Front
All-Russia People's Front
action filter_type
action find_reverse
entity Vladimir Putin
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Vladimir Putin']
SELECT DISTINCT ?h WHERE { ?h property:chairperson resource:Vladimir_Putin . ?h rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q730786
P112
Q502895
USER
Which person was the founder of that political organization ?
(Q730786,P112,c(Q502895))
action filter_type
action find
entity Q730786
relation P112
type Q502895
['Q730786', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q730786 property:P112 ?l . ?l rdf:type ontology:Q502895 }
All-Russia People's Front
action filter_type
action find
entity All-Russia People's Front
relation founder
type common name
["All-Russia People's Front", 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:All-Russia_People's_Front property:founder ?l . ?l rdf:type ontology:common_name }
[]
common name
Q7747
SYSTEM
Vladimir Putin
Q7747
(Q730786,P112,c(Q502895))
action filter_type
action find
entity Q730786
relation P112
type Q502895
[ANSWER] was the founder of that political organization
['Q730786', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q730786 property:P112 ?l . ?l rdf:type ontology:Q502895 }
Vladimir Putin
Vladimir Putin was the founder of that political organization
Vladimir Putin
action filter_type
action find
entity All-Russia People's Front
relation founder
type common name
["All-Russia People's Front", 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:All-Russia_People's_Front property:founder ?l . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1344
Q180684 Q178706
USER
How many conflicts or institutions did that person participate in ?
(Q7747,P1344,c(Q180684)) (Q7747,P1344,c(Q178706)) (Q7747,P1344,c(Q180684)) (Q7747,P1344,c(Q178706))
action count
action union
action filter_type
action find
entity Q7747
relation P1344
type Q180684
action filter_type
action find
entity Q7747
relation P1344
type Q178706
['Q7747', 'P1344', {'concept': 'Q180684'}] ['Q7747', 'P1344', {'concept': 'Q178706'}] ['Q7747', 'P1344', {'concept': 'Q180684'}] ['Q7747', 'P1344', {'concept': 'Q178706'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:Q180684 ) ( ontology:Q178706 ) } }
action count
action union
action filter_type
action find
entity Vladimir Putin
relation participant of
type conflict
action filter_type
action find
entity Vladimir Putin
relation participant of
type institution
['Vladimir Putin', 'participant of', {'concept': 'conflict'}] ['Vladimir Putin', 'participant of', {'concept': 'institution'}] ['Vladimir Putin', 'participant of', {'concept': 'conflict'}] ['Vladimir Putin', 'participant of', {'concept': 'institution'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:conflict ) ( ontology:institution ) } }
[]
conflict institution
SYSTEM
2
Q21032720 Q4605150
(Q7747,P1344,c(Q180684)) (Q7747,P1344,c(Q178706)) (Q7747,P1344,c(Q180684)) (Q7747,P1344,c(Q178706))
action count
action union
action filter_type
action find
entity Q7747
relation P1344
type Q180684
action filter_type
action find
entity Q7747
relation P1344
type Q178706
[ANSWER]
['Q7747', 'P1344', {'concept': 'Q180684'}] ['Q7747', 'P1344', {'concept': 'Q178706'}] ['Q7747', 'P1344', {'concept': 'Q180684'}] ['Q7747', 'P1344', {'concept': 'Q178706'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:Q180684 ) ( ontology:Q178706 ) } }
Russian military intervention in the Syrian Civil War 2005 World Summit
2
action count
action union
action filter_type
action find
entity Vladimir Putin
relation participant of
type conflict
action filter_type
action find
entity Vladimir Putin
relation participant of
type institution
['Vladimir Putin', 'participant of', {'concept': 'conflict'}] ['Vladimir Putin', 'participant of', {'concept': 'institution'}] ['Vladimir Putin', 'participant of', {'concept': 'conflict'}] ['Vladimir Putin', 'participant of', {'concept': 'institution'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:conflict ) ( ontology:institution ) } }
[]