Simple Question (Direct)
Simple Question
Q1043147
P39
Q12737077
USER
Which occupation was a position for which Carlos Francisco Martins Pinheiro was appointed ?
(Q1043147,P39,c(Q12737077))
action filter_type
action find
entity Q1043147
relation P39
type Q12737077
['Q1043147', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q1043147 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
Carlos Francisco Martins Pinheiro
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation position held
type occupation
['Carlos Francisco Martins Pinheiro', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Carlos_Francisco_Martins_Pinheiro property:position_held ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q29182
SYSTEM
bishop
Q29182
(Q1043147,P39,c(Q12737077))
action filter_type
action find
entity Q1043147
relation P39
type Q12737077
[ANSWER] was a position for which Carlos Francisco Martins Pinheiro was appointed
['Q1043147', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q1043147 property:P39 ?m . ?m rdf:type ontology:Q12737077 }
bishop
Bishop was a position for which Carlos Francisco Martins Pinheiro was appointed
bishop
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation position held
type occupation
['Carlos Francisco Martins Pinheiro', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Carlos_Francisco_Martins_Pinheiro property:position_held ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1043147
P106
Q12737077
USER
What are the job of that person ?
(Q29182,P106,c(Q12737077))
action filter_type
action find
entity Q1043147
relation P106
type Q12737077
['Q29182', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1043147 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Carlos Francisco Martins Pinheiro
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation occupation
type occupation
['bishop', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Carlos_Francisco_Martins_Pinheiro property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q1234713 Q250867
SYSTEM
theologian, Catholic priest
Q1234713 Q250867
(Q29182,P106,c(Q12737077))
action filter_type
action find
entity Q1043147
relation P106
type Q12737077
The job of that person are Catholic [ANSWERS]
['Q29182', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1043147 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
theologian Catholic priest
The job of that person are Catholic theologian and Catholic priest
theologian Catholic priest
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation occupation
type occupation
['bishop', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Carlos_Francisco_Martins_Pinheiro property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1043147
P140
Q874405
USER
Which social group does that person relate to ?
(Q1234713,P140,c(Q874405)) (Q250867,P140,c(Q874405))
action filter_type
action find
entity Q1043147
relation P140
type Q874405
['Q1234713', 'P140', {'concept': 'Q874405'}] ['Q250867', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q874405 . resource:Q1043147 property:P140 ?n }
Carlos Francisco Martins Pinheiro
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation religion
type social group
['theologian', 'religion', {'concept': 'social group'}] ['Catholic priest', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:social_group . resource:Carlos_Francisco_Martins_Pinheiro property:religion ?n }
[]
social group
Q1841
SYSTEM
Catholicism
Q1841
(Q1234713,P140,c(Q874405)) (Q250867,P140,c(Q874405))
action filter_type
action find
entity Q1043147
relation P140
type Q874405
That person relates to [ANSWER]
['Q1234713', 'P140', {'concept': 'Q874405'}] ['Q250867', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q874405 . resource:Q1043147 property:P140 ?n }
Catholicism
That person relates to Catholicism
Catholicism
action filter_type
action find
entity Carlos Francisco Martins Pinheiro
relation religion
type social group
['theologian', 'religion', {'concept': 'social group'}] ['Catholic priest', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:social_group . resource:Carlos_Francisco_Martins_Pinheiro property:religion ?n }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q2342494 Q191067
USER
How many occupations were atmost 7 collectables and articles mainly about ?
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 7
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { FILTER ( ?e <= 7 ) . { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?e ) WHERE { { ?j property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q2342494 } UNION { ?y rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q191067 . ?j property:P921 ?y } } GROUP BY ?y } }
action count
action atmost
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 7
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { FILTER ( ?e <= 7 ) . { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?e ) WHERE { { ?j property:main_subject ?y . ?y rdf:type ontology:occupation . ?j rdf:type ontology:collectable } UNION { ?y rdf:type ontology:occupation . ?j rdf:type ontology:article . ?j property:main_subject ?y } } GROUP BY ?y } }
[]
occupation collectable article
SYSTEM
101
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q9402 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q16746569 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q2342494)|c(Q191067),P921,c(Q12737077))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
value 7
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q191067'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { FILTER ( ?e <= 7 ) . { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?e ) WHERE { { ?j property:P921 ?y . ?y rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q2342494 } UNION { ?y rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q191067 . ?j property:P921 ?y } } GROUP BY ?y } }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate ninja taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny high school student caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
101
action count
action atmost
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type article
value 7
[[{'concept': 'collectable'}, {'concept': 'article'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?f ) WHERE { FILTER ( ?e <= 7 ) . { SELECT DISTINCT ?y ( COUNT ( ?j ) AS ?e ) WHERE { { ?j property:main_subject ?y . ?y rdf:type ontology:occupation . ?j rdf:type ontology:collectable } UNION { ?y rdf:type ontology:occupation . ?j rdf:type ontology:article . ?j property:main_subject ?y } } GROUP BY ?y } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q1752346 Q895526 Q12737077
USER
Which occupations are appointed by max number of assemblies or authority organs ?
(c(Q12737077),P748,c(Q1752346)|c(Q895526))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q895526
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?o = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?f WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1752346 ) ( ontology:Q895526 ) } } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?d ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?r WHERE { { ?r property:P748 ?g . ?r rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q895526 } UNION { ?r rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q1752346 . ?r property:P748 ?g } } GROUP BY ?r } } }
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type authority organ
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?o = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?f WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:assembly ) ( ontology:authority_organ ) } } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?d ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?r WHERE { { ?r property:appointed_by ?g . ?r rdf:type ontology:occupation . ?g rdf:type ontology:authority_organ } UNION { ?r rdf:type ontology:occupation . ?g rdf:type ontology:assembly . ?r property:appointed_by ?g } } GROUP BY ?r } } }
[]
assembly authority organ occupation
Q25863345 Q842386 Q967750
SYSTEM
Secretary of State for International Trade, Prime Minister of Russia, United States Secretary of Labor
Q2666591 Q1072417 Q2287650 Q5333410 Q261746 Q1029955 Q642859 Q967762 Q15305714 Q842386 Q19056310 Q890030 Q796593 Q940135 Q2305968 Q7444340 Q2419581 Q25863345 Q2747647 Q13645132 Q636207 Q7574264 Q2003296 Q967750 Q783785 Q1072415 Q3409203 Q327948 Q1763459 Q1591470 Q735015 Q1029968 Q2297543 Q967737 Q1370482 Q6542448 Q2301213 Q1658460 Q628102 Q786242 Q1434880
(c(Q12737077),P748,c(Q1752346)|c(Q895526))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q895526
The [ANSWERS] are appointed by max number of assemblies or authority organs
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?o = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?f WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1752346 ) ( ontology:Q895526 ) } } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?d ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?r WHERE { { ?r property:P748 ?g . ?r rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q895526 } UNION { ?r rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q1752346 . ?r property:P748 ?g } } GROUP BY ?r } } }
Chair of the Federal Reserve Chief of Staff of the United States Air Force United States Secretary of the Interior Economic Secretary to the Treasury United States Secretary of the Air Force United States Secretary of Agriculture United States Secretary of Homeland Security United States Secretary of Education Prime Minister of Libya Prime Minister of Russia President of Botswana State President of South Africa President of Malta United States Secretary of the Navy United States Secretary of Health and Human Services Secretary of State for Dominion Affairs United States Secretary of Housing and Urban Development Secretary of State for International Trade Secretary of State for Defence Lord Mayor of Dublin United States Attorney General Speaker of the Hellenic Parliament United States Secretary of Commerce United States Secretary of Labor Chief of Staff of the United States Army Chief of Naval Operations President of Greece President of Israel Chairman of the Joint Chiefs of Staff United States Secretary of the Army United States Secretary of Defense United States Secretary of Energy United States Deputy Secretary of Defense United States Secretary of Transportation President of Cuba Librarian of Congress United States Deputy Secretary of State United States Secretary of Veterans Affairs President of Nauru White House Chief of Staff Surgeon General of the United States
The Secretary of State for International Trade, Prime Minister of Russia and United States Secretary of Labor are appointed by max number of assemblies or authority organs
Secretary of State for International Trade Prime Minister of Russia United States Secretary of Labor
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type authority organ
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ?f WHERE { FILTER ( ?o = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?o ) ?f WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:assembly ) ( ontology:authority_organ ) } } GROUP BY ?f } . { SELECT DISTINCT ( MAX ( ?d ) AS ?p ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?r WHERE { { ?r property:appointed_by ?g . ?r rdf:type ontology:occupation . ?g rdf:type ontology:authority_organ } UNION { ?r rdf:type ontology:occupation . ?g rdf:type ontology:assembly . ?r property:appointed_by ?g } } GROUP BY ?r } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q25863345 Q842386 Q967750
P39
Q502895
USER
Who were responsible for occupying the position of those occupations ?
(c(Q502895),P39,Q25863345) (c(Q502895),P39,Q842386) (c(Q502895),P39,Q967750)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q25863345'] [{'concept': 'Q502895'}, 'P39', 'Q842386'] [{'concept': 'Q502895'}, 'P39', 'Q967750']
SELECT DISTINCT ?t WHERE { ?t property:P39 ?b . ?t rdf:type ontology:Q502895 . VALUES ( ?b ) { ( resource:Q2666591 ) ( resource:Q1072417 ) ( resource:Q2287650 ) } }
Secretary of State for International Trade Prime Minister of Russia United States Secretary of Labor
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Secretary of State for International Trade'] [{'concept': 'common name'}, 'position held', 'Prime Minister of Russia'] [{'concept': 'common name'}, 'position held', 'United States Secretary of Labor']
SELECT DISTINCT ?t WHERE { ?t property:position_held ?b . ?t rdf:type ontology:common_name . VALUES ( ?b ) { ( resource:Chair_of_the_Federal_Reserve ) ( resource:Chief_of_Staff_of_the_United_States_Air_Force ) ( resource:United_States_Secretary_of_the_Interior ) } }
[]
common name
Q7747 Q7747 Q34453
SYSTEM
Boris Yeltsin for 3rd, Vladimir Putin for 1st, 2nd
Q332374 Q34453 Q62551 Q313989 Q313915 Q138487 Q23530 Q155329 Q270529 Q150080 Q82695 Q190884 Q48211 Q7747 Q7747 Q456483 Q433650 Q263322 Q284635 Q292340 Q50610 Q723828 Q718828 Q239571 Q7793121 Q456907
(c(Q502895),P39,Q25863345) (c(Q502895),P39,Q842386) (c(Q502895),P39,Q967750)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P39', 'Q25863345'] [{'concept': 'Q502895'}, 'P39', 'Q842386'] [{'concept': 'Q502895'}, 'P39', 'Q967750']
SELECT DISTINCT ?t WHERE { ?t property:P39 ?b . ?t rdf:type ontology:Q502895 . VALUES ( ?b ) { ( resource:Q2666591 ) ( resource:Q1072417 ) ( resource:Q2287650 ) } }
Liam Fox Boris Yeltsin Mikhail Kasyanov Sergei Stepashin Sergey Kiriyenko Pyotr Stolypin Dmitry Medvedev Sergei Witte Yevgeny Primakov Mikhail Fradkov Yegor Gaidar Viktor Chernomyrdin Alexander Kerensky Vladimir Putin Vladimir Putin William Usery Ann McLaughlin Korologos Elaine Chao Maurice J. Tobin Alexis Herman Hilda Solis William Bauchop Wilson Robert Reich Elizabeth Dole Thomas Perez James P. Mitchell
Vladimir Putin, Vladimir Putin and Boris Yeltsin were responsible for occupying the position of those occupations
Vladimir Putin Vladimir Putin Boris Yeltsin
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Secretary of State for International Trade'] [{'concept': 'common name'}, 'position held', 'Prime Minister of Russia'] [{'concept': 'common name'}, 'position held', 'United States Secretary of Labor']
SELECT DISTINCT ?t WHERE { ?t property:position_held ?b . ?t rdf:type ontology:common_name . VALUES ( ?b ) { ( resource:Chair_of_the_Federal_Reserve ) ( resource:Chief_of_Staff_of_the_United_States_Air_Force ) ( resource:United_States_Secretary_of_the_Interior ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q34453
P509
Q2057971
USER
What was the cause of death of that person ?
(Q34453,P509,c(Q2057971))
action filter_type
action find
entity Q34453
relation P509
type Q2057971
['Q34453', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?g WHERE { resource:Q34453 property:P509 ?g . ?g rdf:type ontology:Q2057971 }
Boris Yeltsin
action filter_type
action find
entity Boris Yeltsin
relation cause of death
type health problem
['Boris Yeltsin', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?g WHERE { resource:Boris_Yeltsin property:cause_of_death ?g . ?g rdf:type ontology:health_problem }
[]
health problem
Clarification for simple ques.
Q34453
SYSTEM
Did you mean Boris Yeltsin ?
Q7747 Q7747 Q34453
(Q7747,P509,c(Q2057971)) (Q7747,P509,c(Q2057971)) (Q34453,P509,c(Q2057971))
[ANSWER]
['Q7747', 'P509', {'concept': 'Q2057971'}] ['Q7747', 'P509', {'concept': 'Q2057971'}] ['Q34453', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?g WHERE { resource:Q34453 property:P509 ?g . ?g rdf:type ontology:Q2057971 }
Vladimir Putin Vladimir Putin Boris Yeltsin
Did you mean Boris Yeltsin ?
Boris Yeltsin
['Vladimir Putin', 'cause of death', {'concept': 'health problem'}] ['Vladimir Putin', 'cause of death', {'concept': 'health problem'}] ['Boris Yeltsin', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?g WHERE { resource:Boris_Yeltsin property:cause_of_death ?g . ?g rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
USER
Yes
(Q34453,P509,c(Q2057971))
['Q34453', 'P509', {'concept': 'Q2057971'}]
['Boris Yeltsin', 'cause of death', {'concept': 'health problem'}]
[]
Q181754
SYSTEM
heart failure
Q181754
(Q34453,P509,c(Q2057971))
action filter_type
action find
entity Q34453
relation P509
type Q2057971
The cause of death of that person was a [ANSWER]
['Q34453', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?g WHERE { resource:Q34453 property:P509 ?g . ?g rdf:type ontology:Q2057971 }
heart failure
The cause of death of that person was a heart failure
heart failure
action filter_type
action find
entity Boris Yeltsin
relation cause of death
type health problem
['Boris Yeltsin', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?g WHERE { resource:Boris_Yeltsin property:cause_of_death ?g . ?g rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q181754 Q3125341 Q10379
P1995
Q1047113
USER
Does that health problem specializes in Noetic theory and cardiology ?
(Q181754,P1995,Q3125341) (Q181754,P1995,Q10379)
action is_in
entity Q181754
action intersection
action find_reverse
entity Q3125341
relation P1995
action find_reverse
entity Q10379
relation P1995
['Q181754', 'P1995', 'Q3125341'] ['Q181754', 'P1995', 'Q10379']
ASK WHERE { resource:Q181754 property:P1995 resource:Q3125341 . resource:Q181754 property:P1995 resource:Q10379 }
heart failure Noetic theory cardiology
action is_in
entity heart failure
action intersection
action find_reverse
entity Noetic theory
relation medical specialty
action find_reverse
entity cardiology
relation medical specialty
['heart failure', 'medical specialty', 'Noetic theory'] ['heart failure', 'medical specialty', 'cardiology']
ASK WHERE { resource:heart_failure property:medical_specialty resource:Noetic_theory . resource:heart_failure property:medical_specialty resource:cardiology }
[]
special field
SYSTEM
NO and YES respectively
(Q181754,P1995,Q3125341) (Q181754,P1995,Q10379)
action is_in
entity Q181754
action intersection
action find_reverse
entity Q3125341
relation P1995
action find_reverse
entity Q10379
relation P1995
[ANSWER]
['Q181754', 'P1995', 'Q3125341'] ['Q181754', 'P1995', 'Q10379']
ASK WHERE { resource:Q181754 property:P1995 resource:Q3125341 . resource:Q181754 property:P1995 resource:Q10379 }
NO and YES respectively
action is_in
entity heart failure
action intersection
action find_reverse
entity Noetic theory
relation medical specialty
action find_reverse
entity cardiology
relation medical specialty
['heart failure', 'medical specialty', 'Noetic theory'] ['heart failure', 'medical specialty', 'cardiology']
ASK WHERE { resource:heart_failure property:medical_specialty resource:Noetic_theory . resource:heart_failure property:medical_specialty resource:cardiology }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q11971365
P828
Q2057971 Q3839081
USER
How many disasters do more number of health problems cause than Førdesveten plane crash ?
(c(Q3839081),P828,c(Q2057971))
action count
action greater
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q11971365
relation P828
type Q3839081
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?u ) WHERE { ?o property:P828 ?p . ?o rdf:type ontology:Q3839081 . ?p rdf:type ontology:Q2057971 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Q11971365 property:P828 ?g . ?g rdf:type ontology:Q3839081 } } . FILTER ( ?u > ?m ) }
Førdesveten plane crash
action count
action greater
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity Førdesveten plane crash
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?u ) WHERE { ?o property:has_cause ?p . ?o rdf:type ontology:disaster . ?p rdf:type ontology:health_problem } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Førdesveten_plane_crash property:has_cause ?g . ?g rdf:type ontology:disaster } } . FILTER ( ?u > ?m ) }
[]
health problem disaster
SYSTEM
5
Q1470579 Q3589134 Q3589133 Q2036106 Q2035019
(c(Q3839081),P828,c(Q2057971))
action count
action greater
action find_tuple_counts
relation P828
type Q3839081
type Q2057971
action count
action filter_type
action find
entity Q11971365
relation P828
type Q3839081
[ANSWER]
[{'concept': 'Q3839081'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?u ) WHERE { ?o property:P828 ?p . ?o rdf:type ontology:Q3839081 . ?p rdf:type ontology:Q2057971 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Q11971365 property:P828 ?g . ?g rdf:type ontology:Q3839081 } } . FILTER ( ?u > ?m ) }
Otter Valley polio epidemic measles epidemic France 2008 chikungunya epidemic on Réunion Polio Epidemic 1916 1854 Broad Street cholera outbreak
5
action count
action greater
action find_tuple_counts
relation has cause
type disaster
type health problem
action count
action filter_type
action find
entity Førdesveten plane crash
relation has cause
type disaster
[{'concept': 'disaster'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?p ) AS ?u ) WHERE { ?o property:has_cause ?p . ?o rdf:type ontology:disaster . ?p rdf:type ontology:health_problem } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Førdesveten_plane_crash property:has_cause ?g . ?g rdf:type ontology:disaster } } . FILTER ( ?u > ?m ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q181754
P509 P21
Q502895
USER
Which people had heart failure as the cause of death and are a male ?
AND((c(Q502895),P509,Q181754), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q181754
relation P509
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P509', 'Q181754'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o property:P509 resource:Q181754 . ?o property:P21 resource:Q6581097 . ?o rdf:type ontology:Q502895 }
male heart failure
action filter_type
action intersection
action find_reverse
entity heart failure
relation cause of death
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'cause of death', 'heart failure'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o property:cause_of_death resource:heart_failure . ?o property:gender resource:male . ?o rdf:type ontology:common_name }
[]
common name
Q5950 Q52642 Q186359 Q123371 Q955307 Q1146351 Q1956823 Q6390517 Q7940510 Q4888822
SYSTEM
Some of them are James Brown, Al Oerter, Jean-Pierre Rampal, Hans Albert Einstein, H. R. F. Keating, Allan Arbus, Myron Waldman, Kenneth N. Taylor, Josef Anýž, Benjamin Holman
Q11454713 Q100989 Q11461045 Q382406 Q4798779 Q561666 Q271963 Q313525 Q1520488 Q80760 Q6238789 Q648366 Q1452797 Q4704849 Q1333051 Q326157 Q1797226 Q348979 Q462629 Q456979 Q181407 Q157777 Q80596 Q2655002 Q3229669 Q1452899 Q511124 Q1805782 Q1146351 Q16019790 Q3143375 Q1078468 Q11572383 Q15977312 Q1386097 Q602302 Q3517020 Q6075055 Q11369432 Q182455 Q1738832 Q6195738 Q7519259 Q1956823 Q5677370 Q505831 Q859504 Q1355209 Q34453 Q186492 Q200131 Q982401 Q342774 Q2341356 Q2748374 Q5950 Q7342065 Q3470468 Q82409 Q2604 Q3565843 Q1444495 Q34189 Q85918 Q11569763 Q11383642 Q4164765 Q540244 Q454708 Q6186023 Q3039327 Q16018786 Q16491211 Q5273483 Q204523 Q558149 Q210285 Q23794601 Q607935 Q2561138 Q462656 Q2313270 Q3486418 Q186359 Q1017087 Q78983 Q794637 Q151040 Q5577 Q118447 Q367129 Q14594727 Q16014451 Q312657 Q6213323 Q316202 Q506401 Q401864 Q5732864 Q5550767 Q150767 Q955307 Q387515 Q347473 Q526106 Q6197328 Q1403472 Q35286 Q3807076 Q55796 Q15993485 Q78931 Q5095186 Q560770 Q13015173 Q5531454 Q2389215 Q4714639 Q558368 Q19899749 Q5989294 Q557185 Q1680621 Q350704 Q5326138 Q434889 Q6261322 Q337145 Q7940510 Q11644640 Q456907 Q718617 Q649899 Q131004 Q311719 Q74973 Q3436512 Q16013350 Q1677123 Q5920045 Q546592 Q15442474 Q63071 Q467122 Q365633 Q309643 Q710695 Q123371 Q5490012 Q6223155 Q540874 Q4722601 Q1856944 Q5660394 Q311317 Q3791180 Q2291028 Q436209 Q6254432 Q963893 Q543693 Q313400 Q191716 Q36789 Q3142946 Q5042394 Q5293939 Q3568502 Q7350771 Q2551656 Q2757537 Q1035 Q84412 Q16019816 Q321978 Q16014418 Q537722 Q61108 Q4912656 Q854908 Q202470 Q5081434 Q1471618 Q1249298 Q6197387 Q11820 Q23068265 Q319867 Q289631 Q15451712 Q319648 Q16016466 Q349346 Q363371 Q53031 Q2496 Q2152423 Q16017773 Q4133063 Q465474 Q2648565 Q9916 Q489540 Q5498756 Q294555 Q4888822 Q16043538 Q4115951 Q103774 Q162389 Q1064202 Q220520 Q5171541 Q442628 Q16856016 Q4953905 Q106514 Q15452052 Q554577 Q52642 Q104148 Q2024320 Q11449903 Q23481 Q63152 Q34474 Q504901 Q1052458 Q8209261 Q2614411 Q6390517 Q1508648 Q11648912 Q4710253 Q1687883 Q280229 Q4796826 Q333595 Q40701 Q11359307 Q5995654 Q310775 Q2481925 Q1977003 Q330621 Q712817 Q3005290 Q272383 Q472487 Q3528672 Q1160785 Q432562 Q5302017 Q3181785 Q59729 Q41136 Q345182 Q374960 Q6260345 Q5772497 Q16090881 Q5366530 Q2681113 Q3486426 Q2149299 Q15992793 Q108597 Q178250 Q4984910 Q1691652 Q939557 Q6137013 Q979084 Q16019801 Q7314
AND((c(Q502895),P509,Q181754), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q181754
relation P509
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] had heart failure as the cause of death and are a male
{'AND': [[{'concept': 'Q502895'}, 'P509', 'Q181754'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?o WHERE { ?o property:P509 resource:Q181754 . ?o property:P21 resource:Q6581097 . ?o rdf:type ontology:Q502895 }
Hiroshi Miyagawa Hubert von Meyerinck Mitsuo Komatsubara Oliver Jackson Arthur Galston William Windom James Van Allen Lionel Hampton Ralph Brazelton Peck Buddy DeSylva John Henry Devereux Hank Snow Frederick Bayer Al Stump Elmo Hope Ted Kennedy Olavo Setúbal Ned Buntline James Jones J. Lee Thompson Robert Middleton Jan Dismas Zelenka Arthur Miller Robin Olds Leonard Eron Howie Dallmar Semyon Lavochkin Rufus Thomas Allan Arbus Don Safran Huntz Hall Alfred Drake Masakazu Tamai Theo Klouwer Ezra Taft Benson Jack Smith Ted D'Arms Irwin Gunsalus Sadanari Hisamatsu Wilt Chamberlain Kenneth A. Roberts Jim Horne Simon Malley Myron Waldman Harvey Kirck William Conrad Big Walter Horton Kalaparusha Maurice McIntyre Boris Yeltsin George S. Patton Antônio Carlos Jobim Edward Gorey Frankie Laine Leo Smit Jerome Moross James Brown Robert Bernstein Samuel Dash Samuel Taylor Coleridge Pius XII Walter Francis O'Malley Frank Yerby Pablo Neruda Hans Riegel Shintarō Kataoka Shinji Satō Abdel Moneim Madbouly John Taylor Gil Stratton Jess Stearn Lyle Talbot Johnnie High Antônio Batista Vieira Dick Tufeld Wild Man Fischer Don Taylor David Schwarz Arthur Bye Arthur Shawcross Werner Felfe Edward Samuel Rogers Rein van den Broek Rikiya Yasuoka Jean-Pierre Rampal Burt Topper Helmut Zilk Béla Bicsérdy Patriarch Alexius II Salvador Dalí Harold M. Ryan Roy Rogers Aaron Selber, Jr. Hermann Merkin Chuck Jones Joel Colton Gordon A. Craig Bil Keane Ahmet Hadžipašić Herb Carneal Gerhard Skrobek Benjamin Britten H. R. F. Keating Samuel Okwaraji Pandro S. Berman Andy Hallett Jim Padgett Felix Frankfurter Warren G. Harding Janusz Kruk Peter Ustinov Albert Seedman Franz Stangl Chiang Hsiao-wu Marshall Thompson Toon Jintavej Gene Smith Gene Rayburn Alejandro R. Ruiz Gene Barry Richard Oswald Cowling William A. Mitchell B. K. S. Iyengar James J. Kilpatrick Max Steiner Earl W. Bascom Bob May John Trudeau Coen van Vrijberghe de Coningh Josef Anýž Mounet Satomi James P. Mitchell Billy Taylor Carol Telbisz John Bodkin Adams Adlai Stevenson II Gerhard Mayer-Vorfelder Robert Waelder John Yeon Jack McDuff Howard Judd Isao Tomita Robert Anderson Paul Schäfer Ed Koch Dana Andrews Ed Gein Bobbejaan Schoepen Hans Albert Einstein Frank Tripucka John Bridgers Robert A. Roe Alfred Enos Woodward Robert Drinan Harold Cruse Isaac Stern Kenji Eno Sjoerd Huisman Freddie King John Reddell Ronnie Barker Ed Nelson Lon Nol Gene Roddenberry Henry Lee Lucas Larry Harmon Carlos Montalbán Donald A. Wallance William Ching Robert W Crawford Shozo Shimamoto Gilbert Gude Charles Darwin Wilhelm Reich Chris Ullo Lon McCallister Joe Lang Kershaw Jerry Wexler Alfred A. Knopf, Sr. Billy Hall László Bóka Grady Johnson Charles P. Murray, Jr. Paul Smith Ferenc Ripka Jim Pash Martin Van Buren Antal Náray Edmund Muskie Norman Selfe Herbert Krause Ray Kroc Eugene Hamilton George Shearing Yegor Letov Gillo Pontecorvo Ludwig Erhard Major Owens Leon Gouré Malcolm Hamilton Milan Paumer Hashim Khan Dwight D. Eisenhower Lamont Johnson Frederick Sontag Paul Tibbets Benjamin Holman Spencer Leigh Hughes Wadih El Safi Ravi Shankar Tony Curtis Charles E. Chamberlain John Browning Cornell Henry Mayer Isamu Noguchi Charles M. Williams Brad Ecklund River Phoenix John Rogers Edward Ashley-Cooper Al Oerter Vasily Smyslov Sergei Mamchur Seiichirō Uno Friedrich Dürrenmatt Drafi Deutscher Aleksandr Solzhenitsyn Jerald terHorst Valentino Bompiani Aureliano Lessa Avraham Ravitz Kenneth N. Taylor G. Wood Shōsei Suzuki Albert Fuller Jerry Wallace Prince Takahito Mikasa Art Frantz Ricardo Montalbán Joseph Strick Shōkō Uemura Ike Pappas Jean-Claude Duvalier Roger C. Carmel Nelson Gidding Abraham Sofaer Georgios Grivas Joginder Singh John J. Pershing Buddy Miles Tim McIntire Daniel Fuchs Alvino Rey Douglas T. Jacobson John Howard Edward Kent Arthur Penn Elijah Muhammad John J. Gilligan John Taylor Hisayuki Sasaki John Victor Parker Elmer E. Rasmuson Lonnie Wright Wando Richard De Angelis Henry Braden Dave Brubeck Chester Gould Buddy McDonald Joe Wilder Martin Koeman James Joseph Rowley Jimmy Castor Ben Starr Igor Stravinsky
James Brown, Al Oerter, Jean-Pierre Rampal, Hans Albert Einstein, H. R. F. Keating, Allan Arbus, Myron Waldman, Kenneth N. Taylor, Josef Anýž and Benjamin Holman had heart failure as the cause of death and are a male
James Brown Al Oerter Jean-Pierre Rampal Hans Albert Einstein H. R. F. Keating Allan Arbus Myron Waldman Kenneth N. Taylor Josef Anýž Benjamin Holman
action filter_type
action intersection
action find_reverse
entity heart failure
relation cause of death
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'cause of death', 'heart failure'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?o WHERE { ?o property:cause_of_death resource:heart_failure . ?o property:gender resource:male . ?o rdf:type ontology:common_name }
[]