Simple Question (Direct)
Simple Question
Q16893633
P1412
Q34770
USER
Which language is Oscar Whitbread capable of writing ?
(Q16893633,P1412,c(Q34770))
action filter_type
action find
entity Q16893633
relation P1412
type Q34770
['Q16893633', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q16893633 property:P1412 ?v . ?v rdf:type ontology:Q34770 }
Oscar Whitbread
action filter_type
action find
entity Oscar Whitbread
relation languages spoken, written or signed
type language
['Oscar Whitbread', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Oscar_Whitbread property:languages_spoken,_written_or_signed ?v . ?v rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q16893633,P1412,c(Q34770))
action filter_type
action find
entity Q16893633
relation P1412
type Q34770
[ANSWER] is Oscar Whitbread capable of writing
['Q16893633', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { resource:Q16893633 property:P1412 ?v . ?v rdf:type ontology:Q34770 }
English
English is Oscar Whitbread capable of writing
English
action filter_type
action find
entity Oscar Whitbread
relation languages spoken, written or signed
type language
['Oscar Whitbread', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { resource:Oscar_Whitbread property:languages_spoken,_written_or_signed ?v . ?v rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16893633
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q1860,P27,c(Q15617994))
action filter_type
action find
entity Q16893633
relation P27
type Q15617994
['Q1860', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q16893633 property:P27 ?n }
Oscar Whitbread
action filter_type
action find
entity Oscar Whitbread
relation country of citizenship
type designation for an administrative territorial entity
['English', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Oscar_Whitbread property:country_of_citizenship ?n }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q1860,P27,c(Q15617994))
action filter_type
action find
entity Q16893633
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q1860', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q15617994 . resource:Q16893633 property:P27 ?n }
United Kingdom
United Kingdom is the country of citizenship of that person
United Kingdom
action filter_type
action find
entity Oscar Whitbread
relation country of citizenship
type designation for an administrative territorial entity
['English', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Oscar_Whitbread property:country_of_citizenship ?n }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q153136
P85
Q7725634 Q484692 Q15617994
USER
How many administrative territories have an anthem named greater number of literary works or hymns than Habsburg Empire ?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action greater
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q153136
relation P85
type Q7725634
type Q484692
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { { ?c rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q7725634 . ?c property:P85 ?n } UNION { ?c property:P85 ?n . ?c rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q484692 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { resource:Q153136 property:P85 ?t . { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } } } . FILTER ( ?s > ?m ) }
Habsburg Empire
action count
action greater
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Habsburg Empire
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:literary_work . ?c property:anthem ?n } UNION { ?c property:anthem ?n . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:hymn } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { resource:Habsburg_Empire property:anthem ?t . { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:literary_work ) ( ontology:hymn ) } } } } . FILTER ( ?s > ?m ) }
[]
literary work hymn designation for an administrative territorial entity
SYSTEM
3
Q159 Q242 Q1045
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action greater
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q153136
relation P85
type Q7725634
type Q484692
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { { ?c rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q7725634 . ?c property:P85 ?n } UNION { ?c property:P85 ?n . ?c rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q484692 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { resource:Q153136 property:P85 ?t . { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } } } . FILTER ( ?s > ?m ) }
Russia Belize Somalia
3
action count
action greater
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Habsburg Empire
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:literary_work . ?c property:anthem ?n } UNION { ?c property:anthem ?n . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:hymn } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { resource:Habsburg_Empire property:anthem ?t . { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:literary_work ) ( ontology:hymn ) } } } } . FILTER ( ?s > ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q424
P85
Q7725634 Q484692 Q15617994
USER
And what about Cambodia?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action greater
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q424
relation P85
type Q7725634
type Q484692
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Q424 property:P85 ?z . { VALUES ( ?p ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?z rdf:type ?p } } } . FILTER ( ?t > ?i ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) ?x WHERE { { ?x property:P85 ?h . ?x rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q7725634 } UNION { ?h rdf:type ontology:Q484692 . ?x rdf:type ontology:Q15617994 . ?x property:P85 ?h } } GROUP BY ?x } }
Cambodia
action count
action greater
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Cambodia
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Cambodia property:anthem ?z . { VALUES ( ?p ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?z rdf:type ?p } } } . FILTER ( ?t > ?i ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) ?x WHERE { { ?x property:anthem ?h . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:literary_work } UNION { ?h rdf:type ontology:hymn . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:anthem ?h } } GROUP BY ?x } }
[]
literary work hymn designation for an administrative territorial entity
SYSTEM
3
Q159 Q242 Q1045
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action greater
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q424
relation P85
type Q7725634
type Q484692
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Q424 property:P85 ?z . { VALUES ( ?p ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?z rdf:type ?p } } } . FILTER ( ?t > ?i ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) ?x WHERE { { ?x property:P85 ?h . ?x rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q7725634 } UNION { ?h rdf:type ontology:Q484692 . ?x rdf:type ontology:Q15617994 . ?x property:P85 ?h } } GROUP BY ?x } }
Russia Belize Somalia
3
action count
action greater
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Cambodia
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Cambodia property:anthem ?z . { VALUES ( ?p ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?z rdf:type ?p } } } . FILTER ( ?t > ?i ) . { SELECT DISTINCT ( COUNT ( ?h ) AS ?t ) ?x WHERE { { ?x property:anthem ?h . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:literary_work } UNION { ?h rdf:type ontology:hymn . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:anthem ?h } } GROUP BY ?x } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16893633
P21
Q290
USER
Which sex does Oscar Whitbread have ?
(Q16893633,P21,c(Q290))
action filter_type
action find
entity Q16893633
relation P21
type Q290
['Q16893633', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q16893633 property:P21 ?d . ?d rdf:type ontology:Q290 }
Oscar Whitbread
action filter_type
action find
entity Oscar Whitbread
relation gender
type sex
['Oscar Whitbread', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Oscar_Whitbread property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q16893633,P21,c(Q290))
action filter_type
action find
entity Q16893633
relation P21
type Q290
Oscar Whitbread has a [ANSWER]
['Q16893633', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q16893633 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
Oscar Whitbread has a male
male
action filter_type
action find
entity Oscar Whitbread
relation gender
type sex
['Oscar Whitbread', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Oscar_Whitbread property:gender ?d . ?d rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q3904186 Q16893633
P21
Q290
USER
And also Pietro Porta
AND((Q16893633,P21,c(Q290)), (Q3904186,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q16893633
relation P21
action find
entity Q3904186
relation P21
type Q290
{'AND': [['Q16893633', 'P21', {'concept': 'Q290'}], ['Q3904186', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?e WHERE { resource:Q16893633 property:P21 ?e . resource:Q3904186 property:P21 ?e . ?e rdf:type ontology:Q290 }
Pietro Porta Oscar Whitbread
action filter_type
action intersection
action find
entity Oscar Whitbread
relation gender
action find
entity Pietro Porta
relation gender
type sex
{'AND': [['Oscar Whitbread', 'gender', {'concept': 'sex'}], ['Pietro Porta', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?e WHERE { resource:Oscar_Whitbread property:gender ?e . resource:Pietro_Porta property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q16893633,P21,c(Q290)), (Q3904186,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q16893633
relation P21
action find
entity Q3904186
relation P21
type Q290
[ANSWER]
{'AND': [['Q16893633', 'P21', {'concept': 'Q290'}], ['Q3904186', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?e WHERE { resource:Q16893633 property:P21 ?e . resource:Q3904186 property:P21 ?e . ?e rdf:type ontology:Q290 }
male
male
action filter_type
action intersection
action find
entity Oscar Whitbread
relation gender
action find
entity Pietro Porta
relation gender
type sex
{'AND': [['Oscar Whitbread', 'gender', {'concept': 'sex'}], ['Pietro Porta', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?e WHERE { resource:Oscar_Whitbread property:gender ?e . resource:Pietro_Porta property:gender ?e . ?e rdf:type ontology:sex }
[]