Simple Question (Direct)
Simple Question
Q60094
P119
Q16970
USER
Where was Henry IV, Holy Roman Emperor buried ?
(Q60094,P119,c(Q16970))
action filter_type
action find
entity Q60094
relation P119
type Q16970
['Q60094', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?s WHERE { resource:Q60094 property:P119 ?s . ?s rdf:type ontology:Q16970 }
Henry IV, Holy Roman Emperor
action filter_type
action find
entity Henry IV, Holy Roman Emperor
relation place of burial
type church
['Henry IV, Holy Roman Emperor', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?s WHERE { resource:Henry_IV,_Holy_Roman_Emperor property:place_of_burial ?s . ?s rdf:type ontology:church }
[]
church
Q22720
SYSTEM
Speyer Cathedral
Q22720
(Q60094,P119,c(Q16970))
action filter_type
action find
entity Q60094
relation P119
type Q16970
Henry IV , Holy Roman Emperor was buried in [ANSWER]
['Q60094', 'P119', {'concept': 'Q16970'}]
SELECT DISTINCT ?s WHERE { resource:Q60094 property:P119 ?s . ?s rdf:type ontology:Q16970 }
Speyer Cathedral
Henry IV , Holy Roman Emperor was buried in Speyer Cathedral
Speyer Cathedral
action filter_type
action find
entity Henry IV, Holy Roman Emperor
relation place of burial
type church
['Henry IV, Holy Roman Emperor', 'place of burial', {'concept': 'church'}]
SELECT DISTINCT ?s WHERE { resource:Henry_IV,_Holy_Roman_Emperor property:place_of_burial ?s . ?s rdf:type ontology:church }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q60094
P22
Q502895
USER
Which people have that one as dad ?
(c(Q502895),P22,Q22720)
action filter_type
action find_reverse
entity Q60094
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q22720']
SELECT DISTINCT ?v WHERE { ?v property:P22 resource:Q60094 . ?v rdf:type ontology:Q502895 }
Henry IV, Holy Roman Emperor
action filter_type
action find_reverse
entity Henry IV, Holy Roman Emperor
relation father
type common name
[{'concept': 'common name'}, 'father', 'Speyer Cathedral']
SELECT DISTINCT ?v WHERE { ?v property:father resource:Henry_IV,_Holy_Roman_Emperor . ?v rdf:type ontology:common_name }
[]
common name
Q455181 Q242187 Q151707
SYSTEM
Conrad II of Italy, Agnes of Germany, Henry V, Holy Roman Emperor
Q455181 Q242187 Q151707
(c(Q502895),P22,Q22720)
action filter_type
action find_reverse
entity Q60094
relation P22
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q22720']
SELECT DISTINCT ?v WHERE { ?v property:P22 resource:Q60094 . ?v rdf:type ontology:Q502895 }
Conrad II of Italy Agnes of Germany Henry V, Holy Roman Emperor
Conrad II of Italy, Agnes of Germany and Henry V, Holy Roman Emperor have that one as dad
Conrad II of Italy Agnes of Germany Henry V, Holy Roman Emperor
action filter_type
action find_reverse
entity Henry IV, Holy Roman Emperor
relation father
type common name
[{'concept': 'common name'}, 'father', 'Speyer Cathedral']
SELECT DISTINCT ?v WHERE { ?v property:father resource:Henry_IV,_Holy_Roman_Emperor . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P186
Q8063 Q79529 Q16970
USER
Which churches are made from around 3 rocks or chemical substances ?
(c(Q16970),P186,c(Q8063)|c(Q79529))
action approx
action union
action find_tuple_counts
relation P186
type Q16970
type Q8063
action find_tuple_counts
relation P186
type Q16970
type Q79529
value 3
[{'concept': 'Q16970'}, 'P186', [{'concept': 'Q8063'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?r ) WHERE { VALUES ( ?g ) { ( ontology:Q8063 ) ( ontology:Q79529 ) } . ?j rdf:type ?g } GROUP BY ?u } . FILTER ( ?r = 3 ) }
action approx
action union
action find_tuple_counts
relation material used
type church
type rock
action find_tuple_counts
relation material used
type church
type chemical substance
value 3
[{'concept': 'church'}, 'material used', [{'concept': 'rock'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?r ) WHERE { VALUES ( ?g ) { ( ontology:rock ) ( ontology:chemical_substance ) } . ?j rdf:type ?g } GROUP BY ?u } . FILTER ( ?r = 3 ) }
[]
rock chemical substance church
Q7592338
SYSTEM
St Andrew's Church, Cranford
Q7592338
(c(Q16970),P186,c(Q8063)|c(Q79529))
action approx
action union
action find_tuple_counts
relation P186
type Q16970
type Q8063
action find_tuple_counts
relation P186
type Q16970
type Q79529
value 3
[ANSWER] is made from around 3 rocks or chemical substances
[{'concept': 'Q16970'}, 'P186', [{'concept': 'Q8063'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?r ) WHERE { VALUES ( ?g ) { ( ontology:Q8063 ) ( ontology:Q79529 ) } . ?j rdf:type ?g } GROUP BY ?u } . FILTER ( ?r = 3 ) }
St Andrew's Church, Cranford
St Andrew's Church, Cranford is made from around 3 rocks or chemical substances
St Andrew's Church, Cranford
action approx
action union
action find_tuple_counts
relation material used
type church
type rock
action find_tuple_counts
relation material used
type church
type chemical substance
value 3
[{'concept': 'church'}, 'material used', [{'concept': 'rock'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?j ) AS ?r ) WHERE { VALUES ( ?g ) { ( ontology:rock ) ( ontology:chemical_substance ) } . ?j rdf:type ?g } GROUP BY ?u } . FILTER ( ?r = 3 ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7592338 Q145
P17
Q15617994
USER
Is that church present in United Kingdom ?
(Q7592338,P17,Q145)
action is_in
entity Q145
action find
entity Q7592338
relation P17
['Q7592338', 'P17', 'Q145']
ASK WHERE { resource:Q7592338 property:P17 resource:Q145 }
St Andrew's Church, Cranford United Kingdom
action is_in
entity United Kingdom
action find
entity St Andrew's Church, Cranford
relation country
["St Andrew's Church, Cranford", 'country', 'United Kingdom']
ASK WHERE { resource:St_Andrew's_Church,_Cranford property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q7592338,P17,Q145)
action is_in
entity Q145
action find
entity Q7592338
relation P17
[ANSWER]
['Q7592338', 'P17', 'Q145']
ASK WHERE { resource:Q7592338 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity St Andrew's Church, Cranford
relation country
["St Andrew's Church, Cranford", 'country', 'United Kingdom']
ASK WHERE { resource:St_Andrew's_Church,_Cranford property:country resource:United_Kingdom }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q154326
P417
Q1445650 Q16970
USER
How many holidays are the names of the patron saint of less number of churches than Annunciation ?
(c(Q16970),P417,c(Q1445650))
action count
action less
action find_reverse_tuple_counts
relation P417
type Q1445650
type Q16970
action count
action filter_type
action find_reverse
entity Q154326
relation P417
type Q16970
[{'concept': 'Q16970'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:P417 ?r . ?r rdf:type ontology:Q1445650 . ?d rdf:type ontology:Q16970 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:P417 resource:Q154326 . ?s rdf:type ontology:Q16970 } } . FILTER ( ?u < ?v ) }
Annunciation
action count
action less
action find_reverse_tuple_counts
relation patron saint
type holiday
type church
action count
action filter_type
action find_reverse
entity Annunciation
relation patron saint
type church
[{'concept': 'church'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:patron_saint ?r . ?r rdf:type ontology:holiday . ?d rdf:type ontology:church } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:patron_saint resource:Annunciation . ?s rdf:type ontology:church } } . FILTER ( ?u < ?v ) }
[]
holiday church
SYSTEM
2
Q152771 Q587
(c(Q16970),P417,c(Q1445650))
action count
action less
action find_reverse_tuple_counts
relation P417
type Q1445650
type Q16970
action count
action filter_type
action find_reverse
entity Q154326
relation P417
type Q16970
[ANSWER]
[{'concept': 'Q16970'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:P417 ?r . ?r rdf:type ontology:Q1445650 . ?d rdf:type ontology:Q16970 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:P417 resource:Q154326 . ?s rdf:type ontology:Q16970 } } . FILTER ( ?u < ?v ) }
Presentation of Jesus at the Temple All Saints
2
action count
action less
action find_reverse_tuple_counts
relation patron saint
type holiday
type church
action count
action filter_type
action find_reverse
entity Annunciation
relation patron saint
type church
[{'concept': 'church'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:patron_saint ?r . ?r rdf:type ontology:holiday . ?d rdf:type ontology:church } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?v ) WHERE { ?s property:patron_saint resource:Annunciation . ?s rdf:type ontology:church } } . FILTER ( ?u < ?v ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q60094
P9
Q502895
USER
How many people are the sisters of Henry IV, Holy Roman Emperor ?
(Q60094,P9,c(Q502895))
action count
action filter_type
action find
entity Q60094
relation P9
type Q502895
['Q60094', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q60094 property:P9 ?q . ?q rdf:type ontology:Q502895 }
Henry IV, Holy Roman Emperor
action count
action filter_type
action find
entity Henry IV, Holy Roman Emperor
relation sister
type common name
['Henry IV, Holy Roman Emperor', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Henry_IV,_Holy_Roman_Emperor property:sister ?q . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
4
Q273147 Q273609 Q354677 Q254374
(Q60094,P9,c(Q502895))
action count
action filter_type
action find
entity Q60094
relation P9
type Q502895
[ANSWER]
['Q60094', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q60094 property:P9 ?q . ?q rdf:type ontology:Q502895 }
Beatrice I, Abbess of Quedlinburg Matilda of Swabia Adelheid II van Franken Judith of Swabia
4
action count
action filter_type
action find
entity Henry IV, Holy Roman Emperor
relation sister
type common name
['Henry IV, Holy Roman Emperor', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Henry_IV,_Holy_Roman_Emperor property:sister ?q . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q456462
Q502895
USER
And what about Elizabeth of Lancaster, Duchess of Exeter?
(Q456462,P9,c(Q502895))
action count
action filter_type
action find
entity Q456462
relation P9
type Q502895
['Q456462', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:Q456462 property:P9 ?c . ?c rdf:type ontology:Q502895 }
Elizabeth of Lancaster, Duchess of Exeter
action count
action filter_type
action find
entity Elizabeth of Lancaster, Duchess of Exeter
relation sister
type common name
['Elizabeth of Lancaster, Duchess of Exeter', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:Elizabeth_of_Lancaster,_Duchess_of_Exeter property:sister ?c . ?c rdf:type ontology:common_name }
[]
common name
SYSTEM
3
(Q456462,P9,c(Q502895))
action count
action filter_type
action find
entity Q456462
relation P9
type Q502895
[ANSWER]
['Q456462', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:Q456462 property:P9 ?c . ?c rdf:type ontology:Q502895 }
3
action count
action filter_type
action find
entity Elizabeth of Lancaster, Duchess of Exeter
relation sister
type common name
['Elizabeth of Lancaster, Duchess of Exeter', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { resource:Elizabeth_of_Lancaster,_Duchess_of_Exeter property:sister ?c . ?c rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q60094
P21 P40
Q502895
USER
Which people have Henry IV, Holy Roman Emperor as a child and are a male ?
AND((c(Q502895),P40,Q60094), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q60094
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q60094'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?q WHERE { ?q property:P40 resource:Q60094 . ?q property:P21 resource:Q6581097 . ?q rdf:type ontology:Q502895 }
male Henry IV, Holy Roman Emperor
action filter_type
action intersection
action find_reverse
entity Henry IV, Holy Roman Emperor
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Henry IV, Holy Roman Emperor'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?q WHERE { ?q property:child resource:Henry_IV,_Holy_Roman_Emperor . ?q property:gender resource:male . ?q rdf:type ontology:common_name }
[]
common name
Q153023
SYSTEM
Henry III, Holy Roman Emperor
Q153023
AND((c(Q502895),P40,Q60094), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q60094
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Henry IV, Holy Roman Emperor as a child and are a male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q60094'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?q WHERE { ?q property:P40 resource:Q60094 . ?q property:P21 resource:Q6581097 . ?q rdf:type ontology:Q502895 }
Henry III, Holy Roman Emperor
Henry III, Holy Roman Emperor have Henry IV, Holy Roman Emperor as a child and are a male
Henry III, Holy Roman Emperor
action filter_type
action intersection
action find_reverse
entity Henry IV, Holy Roman Emperor
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Henry IV, Holy Roman Emperor'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?q WHERE { ?q property:child resource:Henry_IV,_Holy_Roman_Emperor . ?q property:gender resource:male . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can approximately 1568 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1568
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?l = 1568 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1568
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?l = 1568 ) }
[]
musical instrument common name
SYSTEM
8
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309 Q1343007
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1568
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?r } . FILTER ( ?l = 1568 ) }
viola bass guitar double bass trumpet cello organ drum kit electronic keyboard
8
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1568
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?l ) WHERE { ?t property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?r } . FILTER ( ?l = 1568 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q151707
P20
Q56061
USER
How many administrative territories did the demise of Henry V, Holy Roman Emperor occur ?
(Q151707,P20,c(Q56061))
action count
action filter_type
action find
entity Q151707
relation P20
type Q56061
['Q151707', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Q151707 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Henry V, Holy Roman Emperor
action count
action filter_type
action find
entity Henry V, Holy Roman Emperor
relation place of death
type administrative territorial entity
['Henry V, Holy Roman Emperor', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Henry_V,_Holy_Roman_Emperor property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q803
(Q151707,P20,c(Q56061))
action count
action filter_type
action find
entity Q151707
relation P20
type Q56061
[ANSWER]
['Q151707', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Q151707 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Utrecht
1
action count
action filter_type
action find
entity Henry V, Holy Roman Emperor
relation place of death
type administrative territorial entity
['Henry V, Holy Roman Emperor', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?a ) WHERE { resource:Henry_V,_Holy_Roman_Emperor property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q2939485
Q56061
USER
And also tell me about Juan Carlos Verdeal?
(Q2939485,P20,c(Q56061))
action count
action filter_type
action find
entity Q2939485
relation P20
type Q56061
['Q2939485', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Q2939485 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Juan Carlos Verdeal
action count
action filter_type
action find
entity Juan Carlos Verdeal
relation place of death
type administrative territorial entity
['Juan Carlos Verdeal', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Juan_Carlos_Verdeal property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
(Q2939485,P20,c(Q56061))
action count
action filter_type
action find
entity Q2939485
relation P20
type Q56061
[ANSWER]
['Q2939485', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Q2939485 property:P20 ?s . ?s rdf:type ontology:Q56061 }
1
action count
action filter_type
action find
entity Juan Carlos Verdeal
relation place of death
type administrative territorial entity
['Juan Carlos Verdeal', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { resource:Juan_Carlos_Verdeal property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]