Simple Question (Direct)
Simple Question
Q2499602
P20
Q56061
USER
Where did the demise of Gustaf Estlander occur ?
(Q2499602,P20,c(Q56061))
action filter_type
action find
entity Q2499602
relation P20
type Q56061
['Q2499602', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q2499602 property:P20 ?g . ?g rdf:type ontology:Q56061 }
Gustaf Estlander
action filter_type
action find
entity Gustaf Estlander
relation place of death
type administrative territorial entity
['Gustaf Estlander', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Gustaf_Estlander property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q2499602,P20,c(Q56061))
action filter_type
action find
entity Q2499602
relation P20
type Q56061
The demise of Gustaf Estlander occurred in [ANSWER]
['Q2499602', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q2499602 property:P20 ?g . ?g rdf:type ontology:Q56061 }
Stockholm
The demise of Gustaf Estlander occurred in Stockholm
Stockholm
action filter_type
action find
entity Gustaf Estlander
relation place of death
type administrative territorial entity
['Gustaf Estlander', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Gustaf_Estlander property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2499602
P22
Q502895
USER
Who was the father of Gustaf Estlander ?
(Q2499602,P22,c(Q502895))
action filter_type
action find
entity Q2499602
relation P22
type Q502895
['Q2499602', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q2499602 property:P22 ?s }
Gustaf Estlander
action filter_type
action find
entity Gustaf Estlander
relation father
type common name
['Gustaf Estlander', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Gustaf_Estlander property:father ?s }
[]
common name
Q1388503
SYSTEM
Jakob August Estlander
Q1388503
(Q2499602,P22,c(Q502895))
action filter_type
action find
entity Q2499602
relation P22
type Q502895
The father of Gustaf Estlander was father [ANSWER]
['Q2499602', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q2499602 property:P22 ?s }
Jakob August Estlander
The father of Gustaf Estlander was father Jakob August Estlander
Jakob August Estlander
action filter_type
action find
entity Gustaf Estlander
relation father
type common name
['Gustaf Estlander', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Gustaf_Estlander property:father ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2499602
P21
Q290
USER
Which sex does Gustaf Estlander possess ?
(Q2499602,P21,c(Q290))
action filter_type
action find
entity Q2499602
relation P21
type Q290
['Q2499602', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q2499602 property:P21 ?l . ?l rdf:type ontology:Q290 }
Gustaf Estlander
action filter_type
action find
entity Gustaf Estlander
relation gender
type sex
['Gustaf Estlander', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Gustaf_Estlander property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2499602,P21,c(Q290))
action filter_type
action find
entity Q2499602
relation P21
type Q290
Gustaf Estlander possesses a [ANSWER]
['Q2499602', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q2499602 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
Gustaf Estlander possesses a male
male
action filter_type
action find
entity Gustaf Estlander
relation gender
type sex
['Gustaf Estlander', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Gustaf_Estlander property:gender ?l . ?l rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q502895 Q15850590 Q7725634
USER
Which people were exactly 1 theatrical genres or literary works inspired by ?
(c(Q15850590)|c(Q7725634),P941,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P941
type Q502895
type Q7725634
value 1
[[{'concept': 'Q15850590'}, {'concept': 'Q7725634'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) ?l WHERE { { ?z property:P941 ?l . ?z rdf:type ontology:Q15850590 . ?l rdf:type ontology:Q502895 } UNION { ?z property:P941 ?l . ?l rdf:type ontology:Q502895 . ?z rdf:type ontology:Q7725634 } } GROUP BY ?l } . FILTER ( ?n = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type theatrical genre
action find_reverse_tuple_counts
relation inspired by
type common name
type literary work
value 1
[[{'concept': 'theatrical genre'}, {'concept': 'literary work'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) ?l WHERE { { ?z property:inspired_by ?l . ?z rdf:type ontology:theatrical_genre . ?l rdf:type ontology:common_name } UNION { ?z property:inspired_by ?l . ?l rdf:type ontology:common_name . ?z rdf:type ontology:literary_work } } GROUP BY ?l } . FILTER ( ?n = 1 ) }
[]
common name theatrical genre literary work
Q312502 Q273079 Q123075
SYSTEM
Fiorello H. La Guardia, Cab Calloway, Robert Walser
Q312502 Q3560424 Q273079 Q123075
(c(Q15850590)|c(Q7725634),P941,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P941
type Q502895
type Q7725634
value 1
[ANSWERS] were exactly 1 theatrical genres or literary works inspired by
[[{'concept': 'Q15850590'}, {'concept': 'Q7725634'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) ?l WHERE { { ?z property:P941 ?l . ?z rdf:type ontology:Q15850590 . ?l rdf:type ontology:Q502895 } UNION { ?z property:P941 ?l . ?l rdf:type ontology:Q502895 . ?z rdf:type ontology:Q7725634 } } GROUP BY ?l } . FILTER ( ?n = 1 ) }
Fiorello H. La Guardia Violet Gordon-Woodhouse Cab Calloway Robert Walser
Fiorello H. La Guardia, Cab Calloway and Robert Walser were exactly 1 theatrical genres or literary works inspired by
Fiorello H. La Guardia Cab Calloway Robert Walser
action equal
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type theatrical genre
action find_reverse_tuple_counts
relation inspired by
type common name
type literary work
value 1
[[{'concept': 'theatrical genre'}, {'concept': 'literary work'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) ?l WHERE { { ?z property:inspired_by ?l . ?z rdf:type ontology:theatrical_genre . ?l rdf:type ontology:common_name } UNION { ?z property:inspired_by ?l . ?l rdf:type ontology:common_name . ?z rdf:type ontology:literary_work } } GROUP BY ?l } . FILTER ( ?n = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q312502
P161
Q838948
USER
Which work of art stars Fiorello H. La Guardia as actor ?
(c(Q838948),P161,Q312502)
action filter_type
action find_reverse
entity Q312502
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q312502']
SELECT DISTINCT ?c WHERE { ?c property:P161 resource:Q312502 . ?c rdf:type ontology:Q838948 }
Fiorello H. La Guardia
action filter_type
action find_reverse
entity Fiorello H. La Guardia
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Fiorello H. La Guardia']
SELECT DISTINCT ?c WHERE { ?c property:cast_member resource:Fiorello_H._La_Guardia . ?c rdf:type ontology:work_of_art }
[]
work of art
Q25835
SYSTEM
Cast a Giant Shadow
Q25835
(c(Q838948),P161,Q312502)
action filter_type
action find_reverse
entity Q312502
relation P161
type Q838948
[ANSWER] stars Fiorello H. La Guardia as actor
[{'concept': 'Q838948'}, 'P161', 'Q312502']
SELECT DISTINCT ?c WHERE { ?c property:P161 resource:Q312502 . ?c rdf:type ontology:Q838948 }
Cast a Giant Shadow
Cast a Giant Shadow stars Fiorello H. La Guardia as actor
Cast a Giant Shadow
action filter_type
action find_reverse
entity Fiorello H. La Guardia
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Fiorello H. La Guardia']
SELECT DISTINCT ?c WHERE { ?c property:cast_member resource:Fiorello_H._La_Guardia . ?c rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q312502
P6
Q56061
USER
Which administrative territory has that person as its head of government ?
(c(Q56061),P6,Q25835)
action filter_type
action find_reverse
entity Q312502
relation P6
type Q56061
[{'concept': 'Q56061'}, 'P6', 'Q25835']
SELECT DISTINCT ?b WHERE { ?b property:P6 resource:Q312502 . ?b rdf:type ontology:Q56061 }
Fiorello H. La Guardia
action filter_type
action find_reverse
entity Fiorello H. La Guardia
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Cast a Giant Shadow']
SELECT DISTINCT ?b WHERE { ?b property:head_of_government resource:Fiorello_H._La_Guardia . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(c(Q56061),P6,Q25835)
action filter_type
action find_reverse
entity Q312502
relation P6
type Q56061
[ANSWER] has that person as its head of government
[{'concept': 'Q56061'}, 'P6', 'Q25835']
SELECT DISTINCT ?b WHERE { ?b property:P6 resource:Q312502 . ?b rdf:type ontology:Q56061 }
New York City
New York City has that person as its head of government
New York City
action filter_type
action find_reverse
entity Fiorello H. La Guardia
relation head of government
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'head of government', 'Cast a Giant Shadow']
SELECT DISTINCT ?b WHERE { ?b property:head_of_government resource:Fiorello_H._La_Guardia . ?b rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q312502
P69
Q3918 Q163740
USER
How many universities and nonprofit organizations are the alma mater of Fiorello H. La Guardia ?
(Q312502,P69,c(Q3918)) (Q312502,P69,c(Q163740))
action count
action union
action filter_type
action find
entity Q312502
relation P69
type Q3918
action filter_type
action find
entity Q312502
relation P69
type Q163740
['Q312502', 'P69', {'concept': 'Q3918'}] ['Q312502', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { VALUES ( ?y ) { ( ontology:Q3918 ) ( ontology:Q163740 ) } . ?s rdf:type ?y }
Fiorello H. La Guardia
action count
action union
action filter_type
action find
entity Fiorello H. La Guardia
relation educated at
type university
action filter_type
action find
entity Fiorello H. La Guardia
relation educated at
type nonprofit organization
['Fiorello H. La Guardia', 'educated at', {'concept': 'university'}] ['Fiorello H. La Guardia', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { VALUES ( ?y ) { ( ontology:university ) ( ontology:nonprofit_organization ) } . ?s rdf:type ?y }
[]
university nonprofit organization
SYSTEM
1 universities and 1 nonprofit organizations
Q49210 Q846173
(Q312502,P69,c(Q3918)) (Q312502,P69,c(Q163740))
action count
action union
action filter_type
action find
entity Q312502
relation P69
type Q3918
action filter_type
action find
entity Q312502
relation P69
type Q163740
[ANSWER]
['Q312502', 'P69', {'concept': 'Q3918'}] ['Q312502', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { VALUES ( ?y ) { ( ontology:Q3918 ) ( ontology:Q163740 ) } . ?s rdf:type ?y }
New York University New York University School of Law
1 universities and 1 nonprofit organizations
action count
action union
action filter_type
action find
entity Fiorello H. La Guardia
relation educated at
type university
action filter_type
action find
entity Fiorello H. La Guardia
relation educated at
type nonprofit organization
['Fiorello H. La Guardia', 'educated at', {'concept': 'university'}] ['Fiorello H. La Guardia', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?k ) WHERE { VALUES ( ?y ) { ( ontology:university ) ( ontology:nonprofit_organization ) } . ?s rdf:type ?y }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5559458 Q2499602
P27 P17
Q15617994
USER
Which administrative territories are Gustaf Estlander an inhabitant of or are Gichiengo a part of ?
OR((Q2499602,P27,c(Q15617994)), (Q5559458,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2499602
relation P27
action find
entity Q5559458
relation P17
type Q15617994
{'OR': [['Q2499602', 'P27', {'concept': 'Q15617994'}], ['Q5559458', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q2499602 property:P27 ?z } UNION { resource:Q5559458 property:P17 ?z } } . ?z rdf:type ontology:Q15617994 }
Gichiengo Gustaf Estlander
action filter_type
action union
action find
entity Gustaf Estlander
relation country of citizenship
action find
entity Gichiengo
relation country
type designation for an administrative territorial entity
{'OR': [['Gustaf Estlander', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gichiengo', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Gustaf_Estlander property:country_of_citizenship ?z } UNION { resource:Gichiengo property:country ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q33 Q114 Q34
SYSTEM
Finland, Kenya, Sweden
Q33 Q114 Q34
OR((Q2499602,P27,c(Q15617994)), (Q5559458,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2499602
relation P27
action find
entity Q5559458
relation P17
type Q15617994
[ANSWERS] are Gustaf Estlander an inhabitant of or are Gichiengo a part of
{'OR': [['Q2499602', 'P27', {'concept': 'Q15617994'}], ['Q5559458', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q2499602 property:P27 ?z } UNION { resource:Q5559458 property:P17 ?z } } . ?z rdf:type ontology:Q15617994 }
Finland Kenya Sweden
Finland, Kenya and Sweden are Gustaf Estlander an inhabitant of or are Gichiengo a part of
Finland Kenya Sweden
action filter_type
action union
action find
entity Gustaf Estlander
relation country of citizenship
action find
entity Gichiengo
relation country
type designation for an administrative territorial entity
{'OR': [['Gustaf Estlander', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gichiengo', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Gustaf_Estlander property:country_of_citizenship ?z } UNION { resource:Gichiengo property:country ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q38
P530
Q15617994
USER
Do Italy have diplomatic relations with those ones ?
(Q38,P530,Q33) (Q38,P530,Q114) (Q38,P530,Q34)
action is_in
entity prev_answer
action find
entity Q38
relation P530
['Q38', 'P530', 'Q33'] ['Q38', 'P530', 'Q114'] ['Q38', 'P530', 'Q34']
ASK WHERE { VALUES ( ?i ) { ( resource:Q33 ) ( resource:Q114 ) ( resource:Q34 ) } . resource:Q38 property:P530 ?i }
Italy
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Finland'] ['Italy', 'diplomatic relation', 'Kenya'] ['Italy', 'diplomatic relation', 'Sweden']
ASK WHERE { VALUES ( ?i ) { ( resource:Finland ) ( resource:Kenya ) ( resource:Sweden ) } . resource:Italy property:diplomatic_relation ?i }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q33) (Q38,P530,Q114) (Q38,P530,Q34)
action is_in
entity prev_answer
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q33'] ['Q38', 'P530', 'Q114'] ['Q38', 'P530', 'Q34']
ASK WHERE { VALUES ( ?i ) { ( resource:Q33 ) ( resource:Q114 ) ( resource:Q34 ) } . resource:Q38 property:P530 ?i }
Yes
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Finland'] ['Italy', 'diplomatic relation', 'Kenya'] ['Italy', 'diplomatic relation', 'Sweden']
ASK WHERE { VALUES ( ?i ) { ( resource:Finland ) ( resource:Kenya ) ( resource:Sweden ) } . resource:Italy property:diplomatic_relation ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33
P740
Q2088357
USER
What were formed at Finland ?
(c(Q2088357),P740,Q33)
action filter_type
action find_reverse
entity Q33
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q33']
SELECT DISTINCT ?m WHERE { ?m property:P740 resource:Q33 . ?m rdf:type ontology:Q2088357 }
Finland
action filter_type
action find_reverse
entity Finland
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Finland']
SELECT DISTINCT ?m WHERE { ?m property:location_of_formation resource:Finland . ?m rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q457197 Q743614 Q5260892
SYSTEM
Amberian Dawn, Turmion Kätilöt, Depressed Mode
Q5260892 Q7999772 Q1858610 Q787217 Q847298 Q1500563 Q4356842 Q1361033 Q1787908 Q20251309 Q1080197 Q7971613 Q7230282 Q937711 Q743614 Q5659024 Q3195087 Q457197
(c(Q2088357),P740,Q33)
action filter_type
action find_reverse
entity Q33
relation P740
type Q2088357
[ANSWERS] were formed at Finland
[{'concept': 'Q2088357'}, 'P740', 'Q33']
SELECT DISTINCT ?m WHERE { ?m property:P740 resource:Q33 . ?m rdf:type ontology:Q2088357 }
Depressed Mode Wiidakko Naildown Symfonia Tracedawn Sväng ShamRain Northern Kings Reckless Love Arion Kotipelto Wöyh! Poropetra To Separate the Flesh from the Bones Turmion Kätilöt Harmaja Pain Confessor Amberian Dawn
Amberian Dawn, Turmion Kätilöt and Depressed Mode were formed at Finland
Amberian Dawn Turmion Kätilöt Depressed Mode
action filter_type
action find_reverse
entity Finland
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Finland']
SELECT DISTINCT ?m WHERE { ?m property:location_of_formation resource:Finland . ?m rdf:type ontology:musical_ensemble }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q33
P1001
Q14660
USER
Which flag has jurisdiction over that administrative territory ?
(c(Q14660),P1001,Q457197) (c(Q14660),P1001,Q743614) (c(Q14660),P1001,Q5260892)
action filter_type
action find_reverse
entity Q33
relation P1001
type Q14660
[{'concept': 'Q14660'}, 'P1001', 'Q457197'] [{'concept': 'Q14660'}, 'P1001', 'Q743614'] [{'concept': 'Q14660'}, 'P1001', 'Q5260892']
SELECT DISTINCT ?a WHERE { ?a property:P1001 resource:Q33 . ?a rdf:type ontology:Q14660 }
Finland
action filter_type
action find_reverse
entity Finland
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Amberian Dawn'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Turmion Kätilöt'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Depressed Mode']
SELECT DISTINCT ?a WHERE { ?a property:applies_to_jurisdiction resource:Finland . ?a rdf:type ontology:flag }
[]
flag
Q47891
SYSTEM
Flag of Finland
Q47891
(c(Q14660),P1001,Q457197) (c(Q14660),P1001,Q743614) (c(Q14660),P1001,Q5260892)
action filter_type
action find_reverse
entity Q33
relation P1001
type Q14660
Finland [ANSWER] has jurisdiction over that administrative territory
[{'concept': 'Q14660'}, 'P1001', 'Q457197'] [{'concept': 'Q14660'}, 'P1001', 'Q743614'] [{'concept': 'Q14660'}, 'P1001', 'Q5260892']
SELECT DISTINCT ?a WHERE { ?a property:P1001 resource:Q33 . ?a rdf:type ontology:Q14660 }
Flag of Finland
Finland Flag of Finland has jurisdiction over that administrative territory
Flag of Finland
action filter_type
action find_reverse
entity Finland
relation applies to jurisdiction
type flag
[{'concept': 'flag'}, 'applies to jurisdiction', 'Amberian Dawn'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Turmion Kätilöt'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Depressed Mode']
SELECT DISTINCT ?a WHERE { ?a property:applies_to_jurisdiction resource:Finland . ?a rdf:type ontology:flag }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P163
Q15617994
USER
How many administrative territories are associated with that flag ?
(c(Q15617994),P163,Q47891)
action count
action filter_type
action find_reverse
entity Q47891
relation P163
type Q15617994
[{'concept': 'Q15617994'}, 'P163', 'Q47891']
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:Q15617994 . ?k property:P163 resource:Q47891 }
action count
action filter_type
action find_reverse
entity Flag of Finland
relation flag
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'Flag of Finland']
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:flag resource:Flag_of_Finland }
[]
designation for an administrative territorial entity
SYSTEM
1
Q33
(c(Q15617994),P163,Q47891)
action count
action filter_type
action find_reverse
entity Q47891
relation P163
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P163', 'Q47891']
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:Q15617994 . ?k property:P163 resource:Q47891 }
Finland
1
action count
action filter_type
action find_reverse
entity Flag of Finland
relation flag
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'flag', 'Flag of Finland']
SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:flag resource:Flag_of_Finland }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q47891
P462
Q1075
USER
Which color is associated with Flag of Finland ?
(Q47891,P462,c(Q1075))
action filter_type
action find
entity Q47891
relation P462
type Q1075
['Q47891', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?s WHERE { resource:Q47891 property:P462 ?s . ?s rdf:type ontology:Q1075 }
Flag of Finland
action filter_type
action find
entity Flag of Finland
relation color
type color
['Flag of Finland', 'color', {'concept': 'color'}]
SELECT DISTINCT ?s WHERE { resource:Flag_of_Finland property:color ?s . ?s rdf:type ontology:color }
[]
color
Q1088
SYSTEM
blue
Q1088
(Q47891,P462,c(Q1075))
action filter_type
action find
entity Q47891
relation P462
type Q1075
And [ANSWER] is associated with Flag of Finland
['Q47891', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?s WHERE { resource:Q47891 property:P462 ?s . ?s rdf:type ontology:Q1075 }
blue
And blue is associated with Flag of Finland
blue
action filter_type
action find
entity Flag of Finland
relation color
type color
['Flag of Finland', 'color', {'concept': 'color'}]
SELECT DISTINCT ?s WHERE { resource:Flag_of_Finland property:color ?s . ?s rdf:type ontology:color }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1159262
Q1075
USER
And also tell me about Diary of a Country Priest?
(Q1159262,P462,c(Q1075))
action filter_type
action find
entity Q1159262
relation P462
type Q1075
['Q1159262', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?b WHERE { resource:Q1159262 property:P462 ?b . ?b rdf:type ontology:Q1075 }
Diary of a Country Priest
action filter_type
action find
entity Diary of a Country Priest
relation color
type color
['Diary of a Country Priest', 'color', {'concept': 'color'}]
SELECT DISTINCT ?b WHERE { resource:Diary_of_a_Country_Priest property:color ?b . ?b rdf:type ontology:color }
[]
color
Q2254548
SYSTEM
black-and-white film
Q2254548
(Q1159262,P462,c(Q1075))
action filter_type
action find
entity Q1159262
relation P462
type Q1075
[ANSWER]
['Q1159262', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?b WHERE { resource:Q1159262 property:P462 ?b . ?b rdf:type ontology:Q1075 }
black-and-white film
black-and-white film
action filter_type
action find
entity Diary of a Country Priest
relation color
type color
['Diary of a Country Priest', 'color', {'concept': 'color'}]
SELECT DISTINCT ?b WHERE { resource:Diary_of_a_Country_Priest property:color ?b . ?b rdf:type ontology:color }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P462
Q1075 Q15416
USER
Which colors are around the same number of television programs associated with as that color ?
(c(Q15416),P462,c(Q1075))
action approx
action find_reverse_tuple_counts
relation P462
type Q1075
type Q15416
action count
action filter_type
action find
entity Q2254548
relation P462
type Q1075
[{'concept': 'Q15416'}, 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:P462 ?t . ?t rdf:type ontology:Q1075 . ?w rdf:type ontology:Q15416 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:Q2254548 property:P462 ?f . ?f rdf:type ontology:Q1075 } } . FILTER ( ?j = ?g ) }
action approx
action find_reverse_tuple_counts
relation color
type color
type television program
action count
action filter_type
action find
entity black-and-white film
relation color
type color
[{'concept': 'television program'}, 'color', {'concept': 'color'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:color ?t . ?t rdf:type ontology:color . ?w rdf:type ontology:television_program } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:black-and-white_film property:color ?f . ?f rdf:type ontology:color } } . FILTER ( ?j = ?g ) }
[]
color television program
Q821002 Q15964916 Q2085487
SYSTEM
Pan-Arab colors, Dutch national tinctures, buff
Q19361243 Q3133 Q3705434 Q604079 Q4727574 Q15964916 Q180778 Q1406070 Q2832043 Q2085487 Q2254548 Q3276756 Q3142 Q943 Q13451045 Q13358072 Q13357866 Q821002 Q900906 Q1088 Q1145422 Q23445
(c(Q15416),P462,c(Q1075))
action approx
action find_reverse_tuple_counts
relation P462
type Q1075
type Q15416
action count
action filter_type
action find
entity Q2254548
relation P462
type Q1075
[ANSWERS] are around the same number of television programs associated with as that color
[{'concept': 'Q15416'}, 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:P462 ?t . ?t rdf:type ontology:Q1075 . ?w rdf:type ontology:Q15416 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:Q2254548 property:P462 ?f . ?f rdf:type ontology:Q1075 } } . FILTER ( ?j = ?g ) }
Antique pink green denim mauve Alizarin crimson Dutch national tinctures cyan chestnut alabaster buff black-and-white film magenta red yellow brownish gray RAL 2002 RAL 6018 Pan-Arab colors bay blue gray black
Pan-Arab colors, Dutch national tinctures and buff are around the same number of television programs associated with as that color
Pan-Arab colors Dutch national tinctures buff
action approx
action find_reverse_tuple_counts
relation color
type color
type television program
action count
action filter_type
action find
entity black-and-white film
relation color
type color
[{'concept': 'television program'}, 'color', {'concept': 'color'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:color ?t . ?t rdf:type ontology:color . ?w rdf:type ontology:television_program } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:black-and-white_film property:color ?f . ?f rdf:type ontology:color } } . FILTER ( ?j = ?g ) }
[]