Simple Question (Direct)
Simple Question
Q7820572
P140
Q879146
USER
What is the religion associated with Tomáš Eduard Šilinger ?
(Q7820572,P140,c(Q879146))
action filter_type
action find
entity Q7820572
relation P140
type Q879146
['Q7820572', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?q WHERE { resource:Q7820572 property:P140 ?q . ?q rdf:type ontology:Q879146 }
Tomáš Eduard Šilinger
action filter_type
action find
entity Tomáš Eduard Šilinger
relation religion
type Christian denomination
['Tomáš Eduard Šilinger', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?q WHERE { resource:Tomáš_Eduard_Šilinger property:religion ?q . ?q rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q7820572,P140,c(Q879146))
action filter_type
action find
entity Q7820572
relation P140
type Q879146
The religion associated with Tomáš Eduard Šilinger is a [ANSWER]
['Q7820572', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?q WHERE { resource:Q7820572 property:P140 ?q . ?q rdf:type ontology:Q879146 }
Roman Catholic Church
The religion associated with Tomáš Eduard Šilinger is a Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Tomáš Eduard Šilinger
relation religion
type Christian denomination
['Tomáš Eduard Šilinger', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?q WHERE { resource:Tomáš_Eduard_Šilinger property:religion ?q . ?q rdf:type ontology:Christian_denomination }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7820572
P106
Q12737077
USER
What do that person do for a living ?
(Q9592,P106,c(Q12737077))
action filter_type
action find
entity Q7820572
relation P106
type Q12737077
['Q9592', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q7820572 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Tomáš Eduard Šilinger
action filter_type
action find
entity Tomáš Eduard Šilinger
relation occupation
type occupation
['Roman Catholic Church', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Tomáš_Eduard_Šilinger property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q1930187 Q36180
SYSTEM
journalist, writer
Q1930187 Q36180
(Q9592,P106,c(Q12737077))
action filter_type
action find
entity Q7820572
relation P106
type Q12737077
The [ANSWERS] that person do for a living
['Q9592', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q7820572 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
journalist writer
The journalist and writer that person do for a living
journalist writer
action filter_type
action find
entity Tomáš Eduard Šilinger
relation occupation
type occupation
['Roman Catholic Church', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Tomáš_Eduard_Šilinger property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1930187 Q36180
P921
Q838948
USER
Which works of art were mainly based on journalist and writer ?
(c(Q838948),P921,Q1930187) (c(Q838948),P921,Q36180)
action union
action filter_type
action find_reverse
entity Q1930187
relation P921
type Q838948
action filter_type
action find_reverse
entity Q36180
relation P921
type Q838948
[{'concept': 'Q838948'}, 'P921', 'Q1930187'] [{'concept': 'Q838948'}, 'P921', 'Q36180']
SELECT DISTINCT ?c WHERE { { ?c property:P921 resource:Q1930187 . ?c rdf:type ontology:Q838948 } UNION { ?c rdf:type ontology:Q838948 . ?c property:P921 resource:Q36180 } }
journalist writer
action union
action filter_type
action find_reverse
entity journalist
relation main subject
type work of art
action filter_type
action find_reverse
entity writer
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'journalist'] [{'concept': 'work of art'}, 'main subject', 'writer']
SELECT DISTINCT ?c WHERE { { ?c property:main_subject resource:journalist . ?c rdf:type ontology:work_of_art } UNION { ?c rdf:type ontology:work_of_art . ?c property:main_subject resource:writer } }
[]
work of art
Q622769 Q3575602 Q7847743
SYSTEM
Man of Steel, The Fifth Estate, Trumbo
Q622769 Q3575602 Q7847743
(c(Q838948),P921,Q1930187) (c(Q838948),P921,Q36180)
action union
action filter_type
action find_reverse
entity Q1930187
relation P921
type Q838948
action filter_type
action find_reverse
entity Q36180
relation P921
type Q838948
[ANSWERS] were mainly based on journalist and writer
[{'concept': 'Q838948'}, 'P921', 'Q1930187'] [{'concept': 'Q838948'}, 'P921', 'Q36180']
SELECT DISTINCT ?c WHERE { { ?c property:P921 resource:Q1930187 . ?c rdf:type ontology:Q838948 } UNION { ?c rdf:type ontology:Q838948 . ?c property:P921 resource:Q36180 } }
Man of Steel The Fifth Estate Trumbo
Man of Steel, The Fifth Estate and Trumbo were mainly based on journalist and writer
Man of Steel The Fifth Estate Trumbo
action union
action filter_type
action find_reverse
entity journalist
relation main subject
type work of art
action filter_type
action find_reverse
entity writer
relation main subject
type work of art
[{'concept': 'work of art'}, 'main subject', 'journalist'] [{'concept': 'work of art'}, 'main subject', 'writer']
SELECT DISTINCT ?c WHERE { { ?c property:main_subject resource:journalist . ?c rdf:type ontology:work_of_art } UNION { ?c rdf:type ontology:work_of_art . ?c property:main_subject resource:writer } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7847743
P161
Q502895
USER
Which person was casted in that work of art ?
(Q7847743,P161,c(Q502895))
action filter_type
action find
entity Q7847743
relation P161
type Q502895
['Q7847743', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q7847743 property:P161 ?q . ?q rdf:type ontology:Q502895 }
Trumbo
action filter_type
action find
entity Trumbo
relation cast member
type common name
['Trumbo', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Trumbo property:cast_member ?q . ?q rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q3575602
SYSTEM
Did you mean The Fifth Estate ?
Q622769 Q3575602 Q7847743
(Q622769,P161,c(Q502895)) (Q3575602,P161,c(Q502895)) (Q7847743,P161,c(Q502895))
[ANSWER]
['Q622769', 'P161', {'concept': 'Q502895'}] ['Q3575602', 'P161', {'concept': 'Q502895'}] ['Q7847743', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q7847743 property:P161 ?q . ?q rdf:type ontology:Q502895 }
Man of Steel The Fifth Estate Trumbo
Did you mean The Fifth Estate ?
The Fifth Estate
['Man of Steel', 'cast member', {'concept': 'common name'}] ['The Fifth Estate', 'cast member', {'concept': 'common name'}] ['Trumbo', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Trumbo property:cast_member ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Trumbo. Could you tell me the answer for that?
(Q7847743,P161,c(Q502895))
Q7847743
['Q7847743', 'P161', {'concept': 'Q502895'}]
['Trumbo', 'cast member', {'concept': 'common name'}]
[]
Q350666
SYSTEM
Dalton Trumbo
Q350666
(Q7847743,P161,c(Q502895))
action filter_type
action find
entity Q7847743
relation P161
type Q502895
[ANSWER] was casted in that work of art
['Q7847743', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q7847743 property:P161 ?q . ?q rdf:type ontology:Q502895 }
Dalton Trumbo
Dalton Trumbo was casted in that work of art
Dalton Trumbo
action filter_type
action find
entity Trumbo
relation cast member
type common name
['Trumbo', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Trumbo property:cast_member ?q . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q895526 Q1307214 Q12737077
USER
Which occupations did max number of authority organs or forms of government appoint ?
(c(Q12737077),P748,c(Q895526)|c(Q1307214))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?z WHERE { VALUES ( ?r ) { ( ontology:Q1307214 ) ( ontology:Q895526 ) } . ?b rdf:type ?r } GROUP BY ?z } } . FILTER ( ?y = ?m ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) ?o WHERE { VALUES ( ?p ) { ( ontology:Q1307214 ) ( ontology:Q895526 ) } . ?a rdf:type ?p } GROUP BY ?o } }
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type form of government
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?z WHERE { VALUES ( ?r ) { ( ontology:form_of_government ) ( ontology:authority_organ ) } . ?b rdf:type ?r } GROUP BY ?z } } . FILTER ( ?y = ?m ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) ?o WHERE { VALUES ( ?p ) { ( ontology:form_of_government ) ( ontology:authority_organ ) } . ?a rdf:type ?p } GROUP BY ?o } }
[]
authority organ form of government occupation
Q25863345 Q967750 Q217217
SYSTEM
Secretary of State for International Trade, United States Secretary of Labor, Lord Chancellor
Q2666591 Q1072417 Q1355456 Q2287650 Q1507619 Q5333410 Q261746 Q910308 Q1029955 Q1753754 Q642859 Q967762 Q943379 Q940135 Q2305968 Q7444340 Q2419581 Q25863345 Q2747647 Q583809 Q13645132 Q636207 Q2003296 Q967750 Q2962001 Q783785 Q1072415 Q213107 Q1763459 Q1591470 Q735015 Q1029968 Q2297543 Q967737 Q162754 Q6542448 Q2301213 Q217217 Q1281611 Q1658460 Q1752225 Q687908 Q786242 Q1434880
(c(Q12737077),P748,c(Q895526)|c(Q1307214))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q895526
action find_tuple_counts
relation P748
type Q12737077
type Q1307214
Max number of authority organs or forms of government appointed by [ANSWERS]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q895526'}, {'concept': 'Q1307214'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?z WHERE { VALUES ( ?r ) { ( ontology:Q1307214 ) ( ontology:Q895526 ) } . ?b rdf:type ?r } GROUP BY ?z } } . FILTER ( ?y = ?m ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) ?o WHERE { VALUES ( ?p ) { ( ontology:Q1307214 ) ( ontology:Q895526 ) } . ?a rdf:type ?p } GROUP BY ?o } }
Chair of the Federal Reserve Chief of Staff of the United States Air Force Lord Chamberlain United States Secretary of the Interior Deputy Prime Minister of the United Kingdom Economic Secretary to the Treasury United States Secretary of the Air Force Lord Privy Seal United States Secretary of Agriculture Master of the Rolls United States Secretary of Homeland Security United States Secretary of Education Lord President of the Council 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 Solicitor General for England and Wales Lord Mayor of Dublin United States Attorney General United States Secretary of Commerce United States Secretary of Labor Chief of the Defence Staff Chief of Staff of the United States Army Chief of Naval Operations Prime Minister of Belgium 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 Chancellor of the Duchy of Lancaster Librarian of Congress United States Deputy Secretary of State Lord Chancellor Lieutenant Governor of Jersey United States Secretary of Veterans Affairs Lord Lieutenant of Ireland Lord Chief Justice of England and Wales White House Chief of Staff Surgeon General of the United States
Max number of authority organs or forms of government appointed by Secretary of State for International Trade, United States Secretary of Labor and Lord Chancellor
Secretary of State for International Trade United States Secretary of Labor Lord Chancellor
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type authority organ
action find_tuple_counts
relation appointed by
type occupation
type form of government
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'authority organ'}, {'concept': 'form of government'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?m ) { SELECT DISTINCT ( COUNT ( ?b ) AS ?d ) ?z WHERE { VALUES ( ?r ) { ( ontology:form_of_government ) ( ontology:authority_organ ) } . ?b rdf:type ?r } GROUP BY ?z } } . FILTER ( ?y = ?m ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) ?o WHERE { VALUES ( ?p ) { ( ontology:form_of_government ) ( ontology:authority_organ ) } . ?a rdf:type ?p } GROUP BY ?o } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q13794921 Q622769
P161
Q502895
USER
Which people were casted in Man of Steel or Sharknado ?
OR((Q622769,P161,c(Q502895)), (Q13794921,P161,c(Q502895)))
action filter_type
action union
action find
entity Q622769
relation P161
action find
entity Q13794921
relation P161
type Q502895
{'OR': [['Q622769', 'P161', {'concept': 'Q502895'}], ['Q13794921', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q622769 property:P161 ?d } UNION { resource:Q13794921 property:P161 ?d } } . ?d rdf:type ontology:Q502895 }
Sharknado Man of Steel
action filter_type
action union
action find
entity Man of Steel
relation cast member
action find
entity Sharknado
relation cast member
type common name
{'OR': [['Man of Steel', 'cast member', {'concept': 'common name'}], ['Sharknado', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Man_of_Steel property:cast_member ?d } UNION { resource:Sharknado property:cast_member ?d } } . ?d rdf:type ontology:common_name }
[]
common name
Q355209 Q129817 Q162035 Q275967 Q723751 Q380095 Q62648 Q228871 Q380662 Q211082
SYSTEM
Some of them are Richard Schiff, Russell Crowe, Cassie Scerbo, Ayelet Zurer, Jaason Simmons, Christopher Meloni, Antje Traue, Carla Gugino, Chiquito de la Calzada, Tara Reid
Q380095 Q481832 Q11930 Q14191093 Q719556 Q462327 Q355209 Q193048 Q5711332 Q62648 Q723751 Q3434296 Q129817 Q608709 Q295498 Q900426 Q41449 Q255070 Q211082 Q380662 Q440979 Q275967 Q162035 Q228871 Q352233
OR((Q622769,P161,c(Q502895)), (Q13794921,P161,c(Q502895)))
action filter_type
action union
action find
entity Q622769
relation P161
action find
entity Q13794921
relation P161
type Q502895
[ANSWERS] were casted in Man of Steel or Sharknado
{'OR': [['Q622769', 'P161', {'concept': 'Q502895'}], ['Q13794921', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q622769 property:P161 ?d } UNION { resource:Q13794921 property:P161 ?d } } . ?d rdf:type ontology:Q502895 }
Christopher Meloni Amy Adams Kevin Costner Dylan Sprayberry Michael Kelly John Heard Richard Schiff Laurence Fishburne Aubrey Peeples Antje Traue Jaason Simmons Robbie Rist Russell Crowe Harry Lennix Henry Cavill Chuck Hittinger Michael Shannon Diane Lane Tara Reid Chiquito de la Calzada Tahmoh Penikett Ayelet Zurer Cassie Scerbo Carla Gugino Ian Ziering
Richard Schiff, Russell Crowe, Cassie Scerbo, Ayelet Zurer, Jaason Simmons, Christopher Meloni, Antje Traue, Carla Gugino, Chiquito de la Calzada and Tara Reid were casted in Man of Steel or Sharknado
Richard Schiff Russell Crowe Cassie Scerbo Ayelet Zurer Jaason Simmons Christopher Meloni Antje Traue Carla Gugino Chiquito de la Calzada Tara Reid
action filter_type
action union
action find
entity Man of Steel
relation cast member
action find
entity Sharknado
relation cast member
type common name
{'OR': [['Man of Steel', 'cast member', {'concept': 'common name'}], ['Sharknado', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Man_of_Steel property:cast_member ?d } UNION { resource:Sharknado property:cast_member ?d } } . ?d rdf:type ontology:common_name }
[]