Simple Question (Direct)
Simple Question
Q2315913
P162
Q502895
USER
Who is the creator of Give 'em Hell ?
(Q2315913,P162,c(Q502895))
action filter_type
action find
entity Q2315913
relation P162
type Q502895
['Q2315913', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q2315913 property:P162 ?n . ?n rdf:type ontology:Q502895 }
Give 'em Hell
action filter_type
action find
entity Give 'em Hell
relation producer
type common name
["Give 'em Hell", 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Give_'em_Hell property:producer ?n . ?n rdf:type ontology:common_name }
[]
common name
Q16003059
SYSTEM
Bill Sargent
Q16003059
(Q2315913,P162,c(Q502895))
action filter_type
action find
entity Q2315913
relation P162
type Q502895
The creator of Give 'em Hell is about [ANSWER]
['Q2315913', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q2315913 property:P162 ?n . ?n rdf:type ontology:Q502895 }
Bill Sargent
The creator of Give 'em Hell is about Bill Sargent
Bill Sargent
action filter_type
action find
entity Give 'em Hell
relation producer
type common name
["Give 'em Hell", 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Give_'em_Hell property:producer ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2315913
P364
Q34770
USER
Which language was used originally for the creation of that work of art ?
(Q16003059,P364,c(Q34770))
action filter_type
action find
entity Q2315913
relation P364
type Q34770
['Q16003059', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q2315913 property:P364 ?v . ?v rdf:type ontology:Q34770 }
Give 'em Hell
action filter_type
action find
entity Give 'em Hell
relation original language of work
type language
['Bill Sargent', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Give_'em_Hell property:original_language_of_work ?v . ?v rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q16003059,P364,c(Q34770))
action filter_type
action find
entity Q2315913
relation P364
type Q34770
[ANSWER] was used originally for the creation of that work of art
['Q16003059', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q2315913 property:P364 ?v . ?v rdf:type ontology:Q34770 }
English
English was used originally for the creation of that work of art
English
action filter_type
action find
entity Give 'em Hell
relation original language of work
type language
['Bill Sargent', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Give_'em_Hell property:original_language_of_work ?v . ?v rdf:type ontology:language }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P37
Q34770 Q56061
USER
Which administrative territories are atleast 2 languages the official language of ?
(c(Q56061),P37,c(Q34770))
action atleast
action find_tuple_counts
relation P37
type Q56061
type Q34770
value 2
[{'concept': 'Q56061'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?h ) WHERE { ?j rdf:type ontology:Q56061 . ?o rdf:type ontology:Q34770 . ?j property:P37 ?o } GROUP BY ?j } . FILTER ( ?h >= 2 ) }
action atleast
action find_tuple_counts
relation official language
type administrative territorial entity
type language
value 2
[{'concept': 'administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?h ) WHERE { ?j rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:language . ?j property:official_language ?o } GROUP BY ?j } . FILTER ( ?h >= 2 ) }
[]
language administrative territorial entity
Q237 Q458 Q1183
SYSTEM
Vatican City, European Union, Puerto Rico
Q237 Q458 Q1183
(c(Q56061),P37,c(Q34770))
action atleast
action find_tuple_counts
relation P37
type Q56061
type Q34770
value 2
[ANSWERS] are atleast 2 languages the official language of
[{'concept': 'Q56061'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?h ) WHERE { ?j rdf:type ontology:Q56061 . ?o rdf:type ontology:Q34770 . ?j property:P37 ?o } GROUP BY ?j } . FILTER ( ?h >= 2 ) }
Vatican City European Union Puerto Rico
Vatican City, European Union and Puerto Rico are atleast 2 languages the official language of
Vatican City European Union Puerto Rico
action atleast
action find_tuple_counts
relation official language
type administrative territorial entity
type language
value 2
[{'concept': 'administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?o ) AS ?h ) WHERE { ?j rdf:type ontology:administrative_territorial_entity . ?o rdf:type ontology:language . ?j property:official_language ?o } GROUP BY ?j } . FILTER ( ?h >= 2 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q458
P85
Q484692
USER
Which hymn is the anthem for that administrative territory ?
(Q458,P85,c(Q484692))
action filter_type
action find
entity Q458
relation P85
type Q484692
['Q458', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?t WHERE { resource:Q458 property:P85 ?t . ?t rdf:type ontology:Q484692 }
European Union
action filter_type
action find
entity European Union
relation anthem
type hymn
['European Union', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?t WHERE { resource:European_Union property:anthem ?t . ?t rdf:type ontology:hymn }
[]
hymn
Clarification for simple ques.
Q237
SYSTEM
Did you mean Vatican City ?
Q237 Q458 Q1183
(Q237,P85,c(Q484692)) (Q458,P85,c(Q484692)) (Q1183,P85,c(Q484692))
[ANSWER]
['Q237', 'P85', {'concept': 'Q484692'}] ['Q458', 'P85', {'concept': 'Q484692'}] ['Q1183', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?t WHERE { resource:Q458 property:P85 ?t . ?t rdf:type ontology:Q484692 }
Vatican City European Union Puerto Rico
Did you mean Vatican City ?
Vatican City
['Vatican City', 'anthem', {'concept': 'hymn'}] ['European Union', 'anthem', {'concept': 'hymn'}] ['Puerto Rico', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?t WHERE { resource:European_Union property:anthem ?t . ?t rdf:type ontology:hymn }
[]
Simple Question (Coreferenced)
USER
No, I meant European Union. Could you tell me the answer for that?
(Q458,P85,c(Q484692))
Q458
['Q458', 'P85', {'concept': 'Q484692'}]
['European Union', 'anthem', {'concept': 'hymn'}]
[]
Q11993
SYSTEM
Anthem of Europe
Q11993
(Q458,P85,c(Q484692))
action filter_type
action find
entity Q458
relation P85
type Q484692
The [ANSWER] is the anthem for that administrative territory
['Q458', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?t WHERE { resource:Q458 property:P85 ?t . ?t rdf:type ontology:Q484692 }
Anthem of Europe
The Anthem of Europe is the anthem for that administrative territory
Anthem of Europe
action filter_type
action find
entity European Union
relation anthem
type hymn
['European Union', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?t WHERE { resource:European_Union property:anthem ?t . ?t rdf:type ontology:hymn }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q458
P530
Q15617994 Q1048835
USER
How many administrative territories and political territories have a diplomatic relationship with European Union ?
(Q458,P530,c(Q15617994)) (Q458,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q458
relation P530
type Q15617994
action filter_type
action find
entity Q458
relation P530
type Q1048835
['Q458', 'P530', {'concept': 'Q15617994'}] ['Q458', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } }
European Union
action count
action union
action filter_type
action find
entity European Union
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity European Union
relation diplomatic relation
type political territorial entity
['European Union', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
3 administrative territories and 1 political territories
Q155 Q184 Q16 Q34020
(Q458,P530,c(Q15617994)) (Q458,P530,c(Q1048835))
action count
action union
action filter_type
action find
entity Q458
relation P530
type Q15617994
action filter_type
action find
entity Q458
relation P530
type Q1048835
[ANSWER]
['Q458', 'P530', {'concept': 'Q15617994'}] ['Q458', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } }
Brazil Belarus Canada Niue
3 administrative territories and 1 political territories
action count
action union
action filter_type
action find
entity European Union
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity European Union
relation diplomatic relation
type political territorial entity
['European Union', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['European Union', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q237
P50
Q7725634
USER
Which literary work is Vatican City an author of ?
(c(Q7725634),P50,Q237)
action filter_type
action find_reverse
entity Q237
relation P50
type Q7725634
[{'concept': 'Q7725634'}, 'P50', 'Q237']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7725634 . ?u property:P50 resource:Q237 }
Vatican City
action filter_type
action find_reverse
entity Vatican City
relation author
type literary work
[{'concept': 'literary work'}, 'author', 'Vatican City']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:literary_work . ?u property:author resource:Vatican_City }
[]
literary work
Q1134342
SYSTEM
Inter caetera
Q1134342
(c(Q7725634),P50,Q237)
action filter_type
action find_reverse
entity Q237
relation P50
type Q7725634
[ANSWER] is Vatican City an author of
[{'concept': 'Q7725634'}, 'P50', 'Q237']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q7725634 . ?u property:P50 resource:Q237 }
Inter caetera
Inter caetera is Vatican City an author of
Inter caetera
action filter_type
action find_reverse
entity Vatican City
relation author
type literary work
[{'concept': 'literary work'}, 'author', 'Vatican City']
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:literary_work . ?u property:author resource:Vatican_City }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1134342
P291
Q56061
USER
Which administrative territory is the location of publication of that literary work ?
(Q1134342,P291,c(Q56061))
action filter_type
action find
entity Q1134342
relation P291
type Q56061
['Q1134342', 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1134342 property:P291 ?j . ?j rdf:type ontology:Q56061 }
Inter caetera
action filter_type
action find
entity Inter caetera
relation place of publication
type administrative territorial entity
['Inter caetera', 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Inter_caetera property:place_of_publication ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q1134342,P291,c(Q56061))
action filter_type
action find
entity Q1134342
relation P291
type Q56061
[ANSWER] is the location of publication of that literary work
['Q1134342', 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q1134342 property:P291 ?j . ?j rdf:type ontology:Q56061 }
Rome
Rome is the location of publication of that literary work
Rome
action filter_type
action find
entity Inter caetera
relation place of publication
type administrative territorial entity
['Inter caetera', 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Inter_caetera property:place_of_publication ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4649797 Q1134342
P50 P1346
Q502895
USER
Which people were the writers of Inter caetera or were the winners of AACTA Award for Best Actor in a Leading Role ?
OR((Q1134342,P50,c(Q502895)), (Q4649797,P1346,c(Q502895)))
action filter_type
action union
action find
entity Q1134342
relation P50
action find
entity Q4649797
relation P1346
type Q502895
{'OR': [['Q1134342', 'P50', {'concept': 'Q502895'}], ['Q4649797', 'P1346', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1134342 property:P50 ?p } UNION { resource:Q4649797 property:P1346 ?p } } . ?p rdf:type ontology:Q502895 }
AACTA Award for Best Actor in a Leading Role Inter caetera
action filter_type
action union
action find
entity Inter caetera
relation author
action find
entity AACTA Award for Best Actor in a Leading Role
relation winner
type common name
{'OR': [['Inter caetera', 'author', {'concept': 'common name'}], ['AACTA Award for Best Actor in a Leading Role', 'winner', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Inter_caetera property:author ?p } UNION { resource:AACTA_Award_for_Best_Actor_in_a_Leading_Role property:winner ?p } } . ?p rdf:type ontology:common_name }
[]
common name
Q267356 Q704314 Q1423160 Q816565 Q1670787 Q7488108 Q214309 Q1108476 Q441661 Q933129
SYSTEM
Some of them are John Lynch, Bruce Spence, Nick Tate, Ben Mendelsohn, Norman Kaye, Shane Jacobson, Sam Neill, Colin Friels, John Meillon, Chris O'Dowd
Q1664304 Q142501 Q308124 Q42229 Q704314 Q203215 Q5394518 Q191132 Q214309 Q356383 Q38111 Q731111 Q42204 Q108316 Q5217472 Q7381475 Q129817 Q363876 Q296328 Q619445 Q1108476 Q933129 Q1670787 Q7488108 Q1344237 Q441661 Q82085 Q862208 Q166272 Q1700377 Q816565 Q361630 Q1423160 Q4440 Q7518377 Q11991305 Q267356
OR((Q1134342,P50,c(Q502895)), (Q4649797,P1346,c(Q502895)))
action filter_type
action union
action find
entity Q1134342
relation P50
action find
entity Q4649797
relation P1346
type Q502895
[ANSWERS] were the writers of Inter caetera or were the winners of AACTA Award for Best Actor in a Leading Role
{'OR': [['Q1134342', 'P50', {'concept': 'Q502895'}], ['Q4649797', 'P1346', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q1134342 property:P50 ?p } UNION { resource:Q4649797 property:P1346 ?p } } . ?p rdf:type ontology:Q502895 }
Martin Vaughan Ray Barrett Anthony LaPaglia Mel Gibson Bruce Spence Max von Sydow William McInnes Harvey Keitel Sam Neill Jack Thompson Leonardo DiCaprio David Gulpilil Hugo Weaving Alexander VI Daniel Henshall Russell Dykstra Russell Crowe John Waters David Wenham Chris Haywood Colin Friels Chris O'Dowd Norman Kaye Shane Jacobson Leo McKern John Meillon Sam Worthington Bill Hunter Geoffrey Rush John Hargreaves Ben Mendelsohn Richard Roxburgh Nick Tate Eric Bana Simon Burke Nicholas Hope John Lynch
John Lynch, Bruce Spence, Nick Tate, Ben Mendelsohn, Norman Kaye, Shane Jacobson, Sam Neill, Colin Friels, John Meillon and Chris O'Dowd were the writers of Inter caetera or were the winners of AACTA Award for Best Actor in a Leading Role
John Lynch Bruce Spence Nick Tate Ben Mendelsohn Norman Kaye Shane Jacobson Sam Neill Colin Friels John Meillon Chris O'Dowd
action filter_type
action union
action find
entity Inter caetera
relation author
action find
entity AACTA Award for Best Actor in a Leading Role
relation winner
type common name
{'OR': [['Inter caetera', 'author', {'concept': 'common name'}], ['AACTA Award for Best Actor in a Leading Role', 'winner', {'concept': 'common name'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Inter_caetera property:author ?p } UNION { resource:AACTA_Award_for_Best_Actor_in_a_Leading_Role property:winner ?p } } . ?p rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q4649797
P1346
Q502895
USER
How many people emerged victorious in AACTA Award for Best Actor in a Leading Role ?
(Q4649797,P1346,c(Q502895))
action count
action filter_type
action find
entity Q4649797
relation P1346
type Q502895
['Q4649797', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Q4649797 property:P1346 ?y . ?y rdf:type ontology:Q502895 }
AACTA Award for Best Actor in a Leading Role
action count
action filter_type
action find
entity AACTA Award for Best Actor in a Leading Role
relation winner
type common name
['AACTA Award for Best Actor in a Leading Role', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:AACTA_Award_for_Best_Actor_in_a_Leading_Role property:winner ?y . ?y rdf:type ontology:common_name }
[]
common name
SYSTEM
36
Q1664304 Q142501 Q308124 Q42229 Q704314 Q203215 Q166272 Q191132 Q214309 Q356383 Q38111 Q731111 Q42204 Q1344237 Q5217472 Q7381475 Q129817 Q363876 Q296328 Q619445 Q1108476 Q933129 Q1670787 Q7488108 Q441661 Q82085 Q862208 Q5394518 Q1700377 Q816565 Q361630 Q1423160 Q4440 Q7518377 Q11991305 Q267356
(Q4649797,P1346,c(Q502895))
action count
action filter_type
action find
entity Q4649797
relation P1346
type Q502895
[ANSWER]
['Q4649797', 'P1346', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Q4649797 property:P1346 ?y . ?y rdf:type ontology:Q502895 }
Martin Vaughan Ray Barrett Anthony LaPaglia Mel Gibson Bruce Spence Max von Sydow Geoffrey Rush Harvey Keitel Sam Neill Jack Thompson Leonardo DiCaprio David Gulpilil Hugo Weaving Leo McKern Daniel Henshall Russell Dykstra Russell Crowe John Waters David Wenham Chris Haywood Colin Friels Chris O'Dowd Norman Kaye Shane Jacobson John Meillon Sam Worthington Bill Hunter William McInnes John Hargreaves Ben Mendelsohn Richard Roxburgh Nick Tate Eric Bana Simon Burke Nicholas Hope John Lynch
36
action count
action filter_type
action find
entity AACTA Award for Best Actor in a Leading Role
relation winner
type common name
['AACTA Award for Best Actor in a Leading Role', 'winner', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:AACTA_Award_for_Best_Actor_in_a_Leading_Role property:winner ?y . ?y rdf:type ontology:common_name }
[]