Simple Question (Direct)
Simple Question
Q18927757
P21
Q290
USER
What is the sex of Eugène Cadel ?
(Q18927757,P21,c(Q290))
action filter_type
action find
entity Q18927757
relation P21
type Q290
['Q18927757', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q18927757 property:P21 ?m . ?m rdf:type ontology:Q290 }
Eugène Cadel
action filter_type
action find
entity Eugène Cadel
relation gender
type sex
['Eugène Cadel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Eugène_Cadel property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18927757,P21,c(Q290))
action filter_type
action find
entity Q18927757
relation P21
type Q290
The sex of Eugène Cadel is the [ANSWER]
['Q18927757', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q18927757 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
The sex of Eugène Cadel is the male
male
action filter_type
action find
entity Eugène Cadel
relation gender
type sex
['Eugène Cadel', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Eugène_Cadel property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18927757
P69
Q2668072
USER
Which collection was Eugène Cadel educated at ?
(Q18927757,P69,c(Q2668072))
action filter_type
action find
entity Q18927757
relation P69
type Q2668072
['Q18927757', 'P69', {'concept': 'Q2668072'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q2668072 . resource:Q18927757 property:P69 ?b }
Eugène Cadel
action filter_type
action find
entity Eugène Cadel
relation educated at
type collection
['Eugène Cadel', 'educated at', {'concept': 'collection'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:collection . resource:Eugène_Cadel property:educated_at ?b }
[]
collection
Q273593
SYSTEM
École nationale supérieure des Beaux-Arts
Q273593
(Q18927757,P69,c(Q2668072))
action filter_type
action find
entity Q18927757
relation P69
type Q2668072
Eugène Cadel was educated at [ANSWER]
['Q18927757', 'P69', {'concept': 'Q2668072'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q2668072 . resource:Q18927757 property:P69 ?b }
École nationale supérieure des Beaux-Arts
Eugène Cadel was educated at École nationale supérieure des Beaux-Arts
École nationale supérieure des Beaux-Arts
action filter_type
action find
entity Eugène Cadel
relation educated at
type collection
['Eugène Cadel', 'educated at', {'concept': 'collection'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:collection . resource:Eugène_Cadel property:educated_at ?b }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q981437
Q2668072
USER
And how about Nadir Afonso?
(Q981437,P69,c(Q2668072))
action filter_type
action find
entity Q981437
relation P69
type Q2668072
['Q981437', 'P69', {'concept': 'Q2668072'}]
SELECT DISTINCT ?h WHERE { resource:Q981437 property:P69 ?h . ?h rdf:type ontology:Q2668072 }
Nadir Afonso
action filter_type
action find
entity Nadir Afonso
relation educated at
type collection
['Nadir Afonso', 'educated at', {'concept': 'collection'}]
SELECT DISTINCT ?h WHERE { resource:Nadir_Afonso property:educated_at ?h . ?h rdf:type ontology:collection }
[]
collection
Q273593
SYSTEM
École nationale supérieure des Beaux-Arts
Q273593
(Q981437,P69,c(Q2668072))
action filter_type
action find
entity Q981437
relation P69
type Q2668072
[ANSWER]
['Q981437', 'P69', {'concept': 'Q2668072'}]
SELECT DISTINCT ?h WHERE { resource:Q981437 property:P69 ?h . ?h rdf:type ontology:Q2668072 }
École nationale supérieure des Beaux-Arts
École nationale supérieure des Beaux-Arts
action filter_type
action find
entity Nadir Afonso
relation educated at
type collection
['Nadir Afonso', 'educated at', {'concept': 'collection'}]
SELECT DISTINCT ?h WHERE { resource:Nadir_Afonso property:educated_at ?h . ?h rdf:type ontology:collection }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q981437
P20
Q56061
USER
Where did the expiration of Nadir Afonso occur ?
(Q981437,P20,c(Q56061))
action filter_type
action find
entity Q981437
relation P20
type Q56061
['Q981437', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q981437 property:P20 ?b . ?b rdf:type ontology:Q56061 }
Nadir Afonso
action filter_type
action find
entity Nadir Afonso
relation place of death
type administrative territorial entity
['Nadir Afonso', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Nadir_Afonso property:place_of_death ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q273059
SYSTEM
Cascais
Q273059
(Q981437,P20,c(Q56061))
action filter_type
action find
entity Q981437
relation P20
type Q56061
The expiration of Nadir Afonso occurred in [ANSWER]
['Q981437', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q981437 property:P20 ?b . ?b rdf:type ontology:Q56061 }
Cascais
The expiration of Nadir Afonso occurred in Cascais
Cascais
action filter_type
action find
entity Nadir Afonso
relation place of death
type administrative territorial entity
['Nadir Afonso', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Nadir_Afonso property:place_of_death ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7702000
Q56061
USER
And also tell me about Terence Rigby?
(Q7702000,P20,c(Q56061))
action filter_type
action find
entity Q7702000
relation P20
type Q56061
['Q7702000', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q7702000 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Terence Rigby
action filter_type
action find
entity Terence Rigby
relation place of death
type administrative territorial entity
['Terence Rigby', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Terence_Rigby property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q7702000,P20,c(Q56061))
action filter_type
action find
entity Q7702000
relation P20
type Q56061
[ANSWER]
['Q7702000', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q7702000 property:P20 ?r . ?r rdf:type ontology:Q56061 }
London
London
action filter_type
action find
entity Terence Rigby
relation place of death
type administrative territorial entity
['Terence Rigby', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Terence_Rigby property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1376
Q15617994 Q1496967
USER
How many administrative territories or territories have that administrative territory as their capital ?
(Q84,P1376,c(Q15617994)) (Q84,P1376,c(Q1496967)) (Q84,P1376,c(Q15617994)) (Q84,P1376,c(Q1496967))
action count
action union
action filter_type
action find
entity Q84
relation P1376
type Q15617994
action filter_type
action find
entity Q84
relation P1376
type Q1496967
['Q84', 'P1376', {'concept': 'Q15617994'}] ['Q84', 'P1376', {'concept': 'Q1496967'}] ['Q84', 'P1376', {'concept': 'Q15617994'}] ['Q84', 'P1376', {'concept': 'Q1496967'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q1496967 ) } . ?i rdf:type ?w }
action count
action union
action filter_type
action find
entity London
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity London
relation capital of
type territorial entity
['London', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['London', 'capital of', {'concept': 'territorial entity'}] ['London', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['London', 'capital of', {'concept': 'territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:territorial_entity ) } . ?i rdf:type ?w }
[]
designation for an administrative territorial entity territorial entity
SYSTEM
2
Q21 Q145
(Q84,P1376,c(Q15617994)) (Q84,P1376,c(Q1496967)) (Q84,P1376,c(Q15617994)) (Q84,P1376,c(Q1496967))
action count
action union
action filter_type
action find
entity Q84
relation P1376
type Q15617994
action filter_type
action find
entity Q84
relation P1376
type Q1496967
[ANSWER]
['Q84', 'P1376', {'concept': 'Q15617994'}] ['Q84', 'P1376', {'concept': 'Q1496967'}] ['Q84', 'P1376', {'concept': 'Q15617994'}] ['Q84', 'P1376', {'concept': 'Q1496967'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q1496967 ) } . ?i rdf:type ?w }
England United Kingdom
2
action count
action union
action filter_type
action find
entity London
relation capital of
type designation for an administrative territorial entity
action filter_type
action find
entity London
relation capital of
type territorial entity
['London', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['London', 'capital of', {'concept': 'territorial entity'}] ['London', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['London', 'capital of', {'concept': 'territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?t ) WHERE { VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:territorial_entity ) } . ?i rdf:type ?w }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P608
Q2668072 Q15056995 Q838948
USER
How many collections were exactly 1 aircraft models and works of art exhibited ?
(c(Q15056995)|c(Q838948),P608,c(Q2668072))
action count
action equal
action union
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q15056995
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q838948
value 1
[[{'concept': 'Q15056995'}, {'concept': 'Q838948'}], 'P608', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?z WHERE { VALUES ( ?e ) { ( ontology:Q15056995 ) ( ontology:Q838948 ) } . ?b rdf:type ?e } GROUP BY ?z } . FILTER ( ?j = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation exhibition history
type collection
type aircraft model
action find_reverse_tuple_counts
relation exhibition history
type collection
type work of art
value 1
[[{'concept': 'aircraft model'}, {'concept': 'work of art'}], 'exhibition history', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?z WHERE { VALUES ( ?e ) { ( ontology:aircraft_model ) ( ontology:work_of_art ) } . ?b rdf:type ?e } GROUP BY ?z } . FILTER ( ?j = 1 ) }
[]
collection aircraft model work of art
SYSTEM
4
Q213322 Q6373 Q188112 Q670595
(c(Q15056995)|c(Q838948),P608,c(Q2668072))
action count
action equal
action union
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q15056995
action find_reverse_tuple_counts
relation P608
type Q2668072
type Q838948
value 1
[ANSWER]
[[{'concept': 'Q15056995'}, {'concept': 'Q838948'}], 'P608', {'concept': 'Q2668072'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?z WHERE { VALUES ( ?e ) { ( ontology:Q15056995 ) ( ontology:Q838948 ) } . ?b rdf:type ?e } GROUP BY ?z } . FILTER ( ?j = 1 ) }
Victoria and Albert Museum British Museum National Museum Swiss Transport Museum
4
action count
action equal
action union
action find_reverse_tuple_counts
relation exhibition history
type collection
type aircraft model
action find_reverse_tuple_counts
relation exhibition history
type collection
type work of art
value 1
[[{'concept': 'aircraft model'}, {'concept': 'work of art'}], 'exhibition history', {'concept': 'collection'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) ?z WHERE { VALUES ( ?e ) { ( ontology:aircraft_model ) ( ontology:work_of_art ) } . ?b rdf:type ?e } GROUP BY ?z } . FILTER ( ?j = 1 ) }
[]