Simple Question (Direct)
Simple Question
Q63386
P106
Q12737077
USER
What are the professions of Otto Theodor von Manteuffel ?
(Q63386,P106,c(Q12737077))
action filter_type
action find
entity Q63386
relation P106
type Q12737077
['Q63386', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q63386 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Otto Theodor von Manteuffel
action filter_type
action find
entity Otto Theodor von Manteuffel
relation occupation
type occupation
['Otto Theodor von Manteuffel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Otto_Theodor_von_Manteuffel property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q193391 Q82955
SYSTEM
diplomat, politician
Q193391 Q82955
(Q63386,P106,c(Q12737077))
action filter_type
action find
entity Q63386
relation P106
type Q12737077
The professions of Otto Theodor von Manteuffel are a [ANSWERS]
['Q63386', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q63386 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
diplomat politician
The professions of Otto Theodor von Manteuffel are a diplomat and politician
diplomat politician
action filter_type
action find
entity Otto Theodor von Manteuffel
relation occupation
type occupation
['Otto Theodor von Manteuffel', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Otto_Theodor_von_Manteuffel property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q82955
P425
Q3769299
USER
Which human behaviour has politician as thier associated field of occupation ?
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?g WHERE { resource:Q82955 property:P425 ?g . ?g rdf:type ontology:Q3769299 }
politician
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?g WHERE { resource:politician property:field_of_this_occupation ?g . ?g rdf:type ontology:human_behaviour }
[]
human behaviour
Q7163
SYSTEM
politics
Q7163
(Q82955,P425,c(Q3769299))
action filter_type
action find
entity Q82955
relation P425
type Q3769299
[ANSWER] has politician as thier associated field of occupation
['Q82955', 'P425', {'concept': 'Q3769299'}]
SELECT DISTINCT ?g WHERE { resource:Q82955 property:P425 ?g . ?g rdf:type ontology:Q3769299 }
politics
Politics has politician as thier associated field of occupation
politics
action filter_type
action find
entity politician
relation field of this occupation
type human behaviour
['politician', 'field of this occupation', {'concept': 'human behaviour'}]
SELECT DISTINCT ?g WHERE { resource:politician property:field_of_this_occupation ?g . ?g rdf:type ontology:human_behaviour }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q7163 Q7177685
P101
Q502895
USER
Does Peter White work in the domain of that human behaviour ?
(Q7177685,P101,Q7163)
action is_in
entity Q7177685
action find
entity Q7163
relation P101
['Q7177685', 'P101', 'Q7163']
ASK WHERE { resource:Q7163 property:P101 resource:Q7177685 }
politics Peter White
action is_in
entity Peter White
action find
entity politics
relation field of work
['Peter White', 'field of work', 'politics']
ASK WHERE { resource:politics property:field_of_work resource:Peter_White }
[]
common name
SYSTEM
NO
(Q7177685,P101,Q7163)
action is_in
entity Q7177685
action find
entity Q7163
relation P101
[ANSWER]
['Q7177685', 'P101', 'Q7163']
ASK WHERE { resource:Q7163 property:P101 resource:Q7177685 }
No
action is_in
entity Peter White
action find
entity politics
relation field of work
['Peter White', 'field of work', 'politics']
ASK WHERE { resource:politics property:field_of_work resource:Peter_White }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7163
P921
Q15416
USER
Which television programs have that human behaviour as their principal topic ?
action filter_type
action find_reverse
entity Q7163
relation P921
type Q15416
SELECT DISTINCT ?u WHERE { ?u property:P921 resource:Q7163 . ?u rdf:type ontology:Q15416 }
politics
action filter_type
action find_reverse
entity politics
relation main subject
type television program
SELECT DISTINCT ?u WHERE { ?u property:main_subject resource:politics . ?u rdf:type ontology:television_program }
[]
television program
Q23594 Q3330940 Q585758
SYSTEM
Homeland, House of Cards, Boardwalk Empire
Q7225177 Q1797430 Q7827474 Q276180 Q7979453 Q1248464 Q478360 Q929354 Q7719044 Q7757676 Q4660407 Q585758 Q1392115 Q3878254 Q5403465 Q3330940 Q193973 Q8031616 Q15483532 Q7744290 Q5214637 Q697031 Q3041434 Q3283591 Q7737406 Q23594 Q7734125 Q1508425 Q3093037 Q174390 Q74801 Q568201 Q7140892 Q794258 Q818181 Q1129149 Q7711347 Q7824675 Q6175835 Q6010299 Q7044315 Q6851840 Q56194 Q256527 Q7713329 Q6651101 Q894496 Q7757984 Q7491901 Q7713706 Q3426576 Q1525645 Q28214 Q7062132 Q5209337 Q80217 Q4467311 Q684695 Q6008823 Q5688654 Q2274417 Q1164745 Q7271259 Q5873048 Q1055984 Q4690485 Q8042408 Q3059121 Q5207322 Q13454437 Q924889
action filter_type
action find_reverse
entity Q7163
relation P921
type Q15416
[ANSWERS] have that human behaviour as their principal topic
SELECT DISTINCT ?u WHERE { ?u property:P921 resource:Q7163 . ?u rdf:type ontology:Q15416 }
Politics Show Hearts Afire Tory! Tory! Tory! The Newsroom Weekend World The New Statesman The Wire The Man and the City The Bold Ones: The Senator The Politician's Wife A Very British Coup Boardwalk Empire Political Animals Grandpa Goes to Washington Ethics in America House of Cards Secret State Women of the House 24: Live Another Day The Kids in the Hall: Death Comes to Town Dan for Mayor Commander in Chief Duplessis Mister Sterling The Governor & J.J. Homeland The First Family The State Within G.B.H. State of Play Veep The Thick of It Party Animals Capitol Critters Benson Whoops Apocalypse Thatcher: The Final Days Top of the Hill Jeffrey Archer: The Truth In Opposition No Job for a Lady Miliband of Brothers 24 Spin City The Amazing Mrs Pritchard Little Napoleons Boss The Powers That Be She's the Mayor The Andrew Marr Show René Lévesque Scandal The Killing Not My Department Daily Politics 1600 Penn Tanner on Tanner That's My Bush! InSecurity He's the Mayor Absolute Power The Event Quentin Durgens, M.P. Hizzonner House of Cards After Dark XPM Et Dieu créa... Laflaque Da Vinci's City Hall The Politician's Husband The Power of Nightmares
Homeland, House of Cards and Boardwalk Empire have that human behaviour as their principal topic
Homeland House of Cards Boardwalk Empire
action filter_type
action find_reverse
entity politics
relation main subject
type television program
SELECT DISTINCT ?u WHERE { ?u property:main_subject resource:politics . ?u rdf:type ontology:television_program }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23594
P361
Q15416
USER
What are a component of that one ?
(c(Q15416),P361,Q23594)
action filter_type
action find_reverse
entity Q23594
relation P361
type Q15416
[{'concept': 'Q15416'}, 'P361', 'Q23594']
SELECT DISTINCT ?h WHERE { ?h property:P361 resource:Q23594 . ?h rdf:type ontology:Q15416 }
Homeland
action filter_type
action find_reverse
entity Homeland
relation part of
type television program
[{'concept': 'television program'}, 'part of', 'Homeland']
SELECT DISTINCT ?h WHERE { ?h property:part_of resource:Homeland . ?h rdf:type ontology:television_program }
[]
television program
Clarification for simple ques.
Q23594
SYSTEM
Did you mean Homeland ?
Q23594 Q3330940 Q585758
(c(Q15416),P361,Q23594) (c(Q15416),P361,Q3330940) (c(Q15416),P361,Q585758)
[ANSWER]
[{'concept': 'Q15416'}, 'P361', 'Q23594'] [{'concept': 'Q15416'}, 'P361', 'Q3330940'] [{'concept': 'Q15416'}, 'P361', 'Q585758']
SELECT DISTINCT ?h WHERE { ?h property:P361 resource:Q23594 . ?h rdf:type ontology:Q15416 }
Homeland House of Cards Boardwalk Empire
Did you mean Homeland ?
Homeland
[{'concept': 'television program'}, 'part of', 'Homeland'] [{'concept': 'television program'}, 'part of', 'House of Cards'] [{'concept': 'television program'}, 'part of', 'Boardwalk Empire']
SELECT DISTINCT ?h WHERE { ?h property:part_of resource:Homeland . ?h rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q15416),P361,Q23594)
[{'concept': 'Q15416'}, 'P361', 'Q23594']
[{'concept': 'television program'}, 'part of', 'Homeland']
[]
Q2084511 Q14822497 Q17183335
SYSTEM
Homeland, season 2, season 3 of Homeland, Homeland (season 4)
Q2084511 Q14822497 Q3465690 Q17183335 Q20647421
(c(Q15416),P361,Q23594)
action filter_type
action find_reverse
entity Q23594
relation P361
type Q15416
A component of that one are of [ANSWERS]
[{'concept': 'Q15416'}, 'P361', 'Q23594']
SELECT DISTINCT ?h WHERE { ?h property:P361 resource:Q23594 . ?h rdf:type ontology:Q15416 }
Homeland, season 2 season 3 of Homeland Homeland, season 1 Homeland (season 4) Homeland (season 5)
A component of that one are of Homeland, season 2, season 3 of Homeland and Homeland (season 4)
Homeland, season 2 season 3 of Homeland Homeland (season 4)
action filter_type
action find_reverse
entity Homeland
relation part of
type television program
[{'concept': 'television program'}, 'part of', 'Homeland']
SELECT DISTINCT ?h WHERE { ?h property:part_of resource:Homeland . ?h rdf:type ontology:television_program }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q7163
P101 P21
Q502895
USER
Which people have field of work as politics and have the gender as male ?
AND((c(Q502895),P101,Q7163), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7163
relation P101
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P101', 'Q7163'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P101 resource:Q7163 . ?t property:P21 resource:Q6581097 }
male politics
action filter_type
action intersection
action find_reverse
entity politics
relation field of work
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'field of work', 'politics'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:field_of_work resource:politics . ?t property:gender resource:male }
[]
common name
Q298678 Q520016 Q983654 Q160852 Q2530 Q11256 Q491558 Q4384595 Q546231 Q4203535
SYSTEM
Some of them are Muhammad Ahmad, Igor Lebedev, Sergey Naryshkin, William Ewart Gladstone, Gerhard Schröder, Fidel Castro, Ibn Taymiyyah, Vladimir Puchkov, David Campbell Bannerman, Andrey Isayev
Q298678 Q334294 Q293621 Q2530 Q2514 Q311826 Q20612062 Q983654 Q3875891 Q21170951 Q253515 Q491558 Q697184 Q23530 Q589645 Q10857728 Q546231 Q4746323 Q7747 Q200015 Q193257 Q27443332 Q57888 Q1371404 Q520016 Q4289876 Q5545875 Q17198254 Q11256 Q57783 Q34453 Q4203535 Q4384595 Q7526096 Q87528 Q160852 Q2398475 Q4260940
AND((c(Q502895),P101,Q7163), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q7163
relation P101
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] have field of work as politics and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P101', 'Q7163'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?t property:P101 resource:Q7163 . ?t property:P21 resource:Q6581097 }
Muhammad Ahmad Anatoly Sobchak Al-Mustarshid Gerhard Schröder Willy Brandt Muhammad Abduh Khaltmaagyn Battulga Sergey Naryshkin Niccolò Rinaldi Pierre-André Page Jaak Aaviksoo Ibn Taymiyyah Per Stig Møller Dmitry Medvedev Anton Siluanov Zdeněk Velíšek David Campbell Bannerman Amin Saikal Vladimir Putin Vladimir Zhirinovsky Jean-François Lyotard Remco Meijer Norovyn Altankhuyag Georgios Athanasiadis-Novas Igor Lebedev Ivan Melnikov George Ward, 1st Viscount Ward of Witley Tomasz Kitliński Fidel Castro John Key Boris Yeltsin Andrey Isayev Vladimir Puchkov Sir Baldwyn Leighton, 8th Baronet Ewald Stadler William Ewart Gladstone Gilles Catoire Dmitry Livanov
Muhammad Ahmad, Igor Lebedev, Sergey Naryshkin, William Ewart Gladstone, Gerhard Schröder, Fidel Castro, Ibn Taymiyyah, Vladimir Puchkov, David Campbell Bannerman and Andrey Isayev have field of work as politics and have the gender as male
Muhammad Ahmad Igor Lebedev Sergey Naryshkin William Ewart Gladstone Gerhard Schröder Fidel Castro Ibn Taymiyyah Vladimir Puchkov David Campbell Bannerman Andrey Isayev
action filter_type
action intersection
action find_reverse
entity politics
relation field of work
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'field of work', 'politics'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?t property:field_of_work resource:politics . ?t property:gender resource:male }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q11256 Q2475279
P102
Q7278
USER
How many political parties are Fidel Castro or Ullrich Sierau affiliated with ?
(Q11256,P102,c(Q7278)) (Q2475279,P102,c(Q7278))
action count
action union
action filter_type
action find
entity Q11256
relation P102
type Q7278
action filter_type
action find
entity Q2475279
relation P102
type Q7278
['Q11256', 'P102', {'concept': 'Q7278'}] ['Q2475279', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?g property:P102 ?p . VALUES ( ?g ) { ( resource:Q11256 ) ( resource:Q2475279 ) } }
Fidel Castro Ullrich Sierau
action count
action union
action filter_type
action find
entity Fidel Castro
relation member of political party
type political party
action filter_type
action find
entity Ullrich Sierau
relation member of political party
type political party
['Fidel Castro', 'member of political party', {'concept': 'political party'}] ['Ullrich Sierau', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?g property:member_of_political_party ?p . VALUES ( ?g ) { ( resource:Fidel_Castro ) ( resource:Ullrich_Sierau ) } }
[]
political party
SYSTEM
2
Q49768 Q371402
(Q11256,P102,c(Q7278)) (Q2475279,P102,c(Q7278))
action count
action union
action filter_type
action find
entity Q11256
relation P102
type Q7278
action filter_type
action find
entity Q2475279
relation P102
type Q7278
[ANSWER]
['Q11256', 'P102', {'concept': 'Q7278'}] ['Q2475279', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?g property:P102 ?p . VALUES ( ?g ) { ( resource:Q11256 ) ( resource:Q2475279 ) } }
Social Democratic Party of Germany Communist Party of Cuba
2
action count
action union
action filter_type
action find
entity Fidel Castro
relation member of political party
type political party
action filter_type
action find
entity Ullrich Sierau
relation member of political party
type political party
['Fidel Castro', 'member of political party', {'concept': 'political party'}] ['Ullrich Sierau', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?f ) WHERE { ?g property:member_of_political_party ?p . VALUES ( ?g ) { ( resource:Fidel_Castro ) ( resource:Ullrich_Sierau ) } }
[]