Simple Question (Direct)
Simple Question
Q974995
P27
Q15617994
USER
Which administrative territory does José Pérez Serer belong to ?
(Q974995,P27,c(Q15617994))
action filter_type
action find
entity Q974995
relation P27
type Q15617994
['Q974995', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q974995 property:P27 ?a }
José Pérez Serer
action filter_type
action find
entity José Pérez Serer
relation country of citizenship
type designation for an administrative territorial entity
['José Pérez Serer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:José_Pérez_Serer property:country_of_citizenship ?a }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q974995,P27,c(Q15617994))
action filter_type
action find
entity Q974995
relation P27
type Q15617994
José Pérez Serer belongs to [ANSWER]
['Q974995', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q974995 property:P27 ?a }
Spain
José Pérez Serer belongs to Spain
Spain
action filter_type
action find
entity José Pérez Serer
relation country of citizenship
type designation for an administrative territorial entity
['José Pérez Serer', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:José_Pérez_Serer property:country_of_citizenship ?a }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q29
P137
Q43229
USER
Which organization was operated by that administrative territory ?
(c(Q43229),P137,Q29)
action filter_type
action find_reverse
entity Q29
relation P137
type Q43229
[{'concept': 'Q43229'}, 'P137', 'Q29']
SELECT DISTINCT ?s WHERE { ?s property:P137 resource:Q29 . ?s rdf:type ontology:Q43229 }
Spain
action filter_type
action find_reverse
entity Spain
relation operator
type organization
[{'concept': 'organization'}, 'operator', 'Spain']
SELECT DISTINCT ?s WHERE { ?s property:operator resource:Spain . ?s rdf:type ontology:organization }
[]
organization
Q54829
SYSTEM
Radiotelevisión Española
Q54829
(c(Q43229),P137,Q29)
action filter_type
action find_reverse
entity Q29
relation P137
type Q43229
[ANSWER] was operated by that administrative territory
[{'concept': 'Q43229'}, 'P137', 'Q29']
SELECT DISTINCT ?s WHERE { ?s property:P137 resource:Q29 . ?s rdf:type ontology:Q43229 }
Radiotelevisión Española
Radiotelevisión Española was operated by that administrative territory
Radiotelevisión Española
action filter_type
action find_reverse
entity Spain
relation operator
type organization
[{'concept': 'organization'}, 'operator', 'Spain']
SELECT DISTINCT ?s WHERE { ?s property:operator resource:Spain . ?s rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P138
Q811979
USER
Which architectural structures have Spain as their namesake ?
(c(Q811979),P138,Q29)
action filter_type
action find_reverse
entity Q29
relation P138
type Q811979
[{'concept': 'Q811979'}, 'P138', 'Q29']
SELECT DISTINCT ?y WHERE { ?y property:P138 resource:Q29 . ?y rdf:type ontology:Q811979 }
Spain
action filter_type
action find_reverse
entity Spain
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'Spain']
SELECT DISTINCT ?y WHERE { ?y property:named_after resource:Spain . ?y rdf:type ontology:architectural_structure }
[]
architectural structure
Q2013874 Q956018 Q1326261
SYSTEM
Plaça d'Espanya, Plaza de España, plaza de España
Q2013874 Q956018 Q1326261
(c(Q811979),P138,Q29)
action filter_type
action find_reverse
entity Q29
relation P138
type Q811979
[ANSWERS] have Spain as their namesake
[{'concept': 'Q811979'}, 'P138', 'Q29']
SELECT DISTINCT ?y WHERE { ?y property:P138 resource:Q29 . ?y rdf:type ontology:Q811979 }
Plaça d'Espanya Plaza de España plaza de España
Plaça d'Espanya, Plaza de España and plaza de España have Spain as their namesake
Plaça d'Espanya Plaza de España plaza de España
action filter_type
action find_reverse
entity Spain
relation named after
type architectural structure
[{'concept': 'architectural structure'}, 'named after', 'Spain']
SELECT DISTINCT ?y WHERE { ?y property:named_after resource:Spain . ?y rdf:type ontology:architectural_structure }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P1313
Q12737077
USER
Which occupation is fulfilled by Spain ?
(Q29,P1313,c(Q12737077))
action filter_type
action find
entity Q29
relation P1313
type Q12737077
['Q29', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q29 property:P1313 ?e . ?e rdf:type ontology:Q12737077 }
Spain
action filter_type
action find
entity Spain
relation office held by head of government
type occupation
['Spain', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Spain property:office_held_by_head_of_government ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q844587
SYSTEM
Prime Minister of Spain
Q844587
(Q29,P1313,c(Q12737077))
action filter_type
action find
entity Q29
relation P1313
type Q12737077
Spain [ANSWER] is fulfilled by Spain
['Q29', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q29 property:P1313 ?e . ?e rdf:type ontology:Q12737077 }
Prime Minister of Spain
Spain Prime Minister of Spain is fulfilled by Spain
Prime Minister of Spain
action filter_type
action find
entity Spain
relation office held by head of government
type occupation
['Spain', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Spain property:office_held_by_head_of_government ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P47
Q15617994
USER
Who share the border with Spain ?
(Q29,P47,c(Q15617994))
action filter_type
action find
entity Q29
relation P47
type Q15617994
['Q29', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q29 property:P47 ?u . ?u rdf:type ontology:Q15617994 }
Spain
action filter_type
action find
entity Spain
relation shares border with
type designation for an administrative territorial entity
['Spain', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Spain property:shares_border_with ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q45 Q1028
SYSTEM
France, Portugal, Morocco
Q142 Q1025 Q45 Q1028 Q228
(Q29,P47,c(Q15617994))
action filter_type
action find
entity Q29
relation P47
type Q15617994
[ANSWERS] share the border with Spain
['Q29', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q29 property:P47 ?u . ?u rdf:type ontology:Q15617994 }
France Mauritania Portugal Morocco Andorra
France, Portugal and Morocco share the border with Spain
France Portugal Morocco
action filter_type
action find
entity Spain
relation shares border with
type designation for an administrative territorial entity
['Spain', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Spain property:shares_border_with ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q54003
Q15617994
USER
And also tell me about Serra Pedace?
(Q54003,P47,c(Q15617994))
action filter_type
action find
entity Q54003
relation P47
type Q15617994
['Q54003', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q54003 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
Serra Pedace
action filter_type
action find
entity Serra Pedace
relation shares border with
type designation for an administrative territorial entity
['Serra Pedace', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Serra_Pedace property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q53969 Q53852 Q53932
SYSTEM
San Giovanni in Fiore, Casole Bruzio, Pedace
Q53852 Q54006 Q53932 Q53969
(Q54003,P47,c(Q15617994))
action filter_type
action find
entity Q54003
relation P47
type Q15617994
[ANSWERS]
['Q54003', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q54003 property:P47 ?y . ?y rdf:type ontology:Q15617994 }
Casole Bruzio Spezzano Piccolo Pedace San Giovanni in Fiore
San Giovanni in Fiore Casole Bruzio Pedace
action filter_type
action find
entity Serra Pedace
relation shares border with
type designation for an administrative territorial entity
['Serra Pedace', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Serra_Pedace property:shares_border_with ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3398461
P47
Q15617994
USER
Are A Agualada next to the border of those ones ?
(Q3398461,P47,Q53969) (Q3398461,P47,Q53852) (Q3398461,P47,Q53932)
action is_in
entity prev_answer
action find
entity Q3398461
relation P47
['Q3398461', 'P47', 'Q53969'] ['Q3398461', 'P47', 'Q53852'] ['Q3398461', 'P47', 'Q53932']
ASK WHERE { resource:Q3398461 property:P47 ?d . VALUES ( ?d ) { ( resource:Q53852 ) ( resource:Q54006 ) ( resource:Q53932 ) } }
A Agualada
action is_in
entity prev_answer
action find
entity A Agualada
relation shares border with
['A Agualada', 'shares border with', 'San Giovanni in Fiore'] ['A Agualada', 'shares border with', 'Casole Bruzio'] ['A Agualada', 'shares border with', 'Pedace']
ASK WHERE { resource:A_Agualada property:shares_border_with ?d . VALUES ( ?d ) { ( resource:Casole_Bruzio ) ( resource:Spezzano_Piccolo ) ( resource:Pedace ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q3398461,P47,Q53969) (Q3398461,P47,Q53852) (Q3398461,P47,Q53932)
action is_in
entity prev_answer
action find
entity Q3398461
relation P47
[ANSWER]
['Q3398461', 'P47', 'Q53969'] ['Q3398461', 'P47', 'Q53852'] ['Q3398461', 'P47', 'Q53932']
ASK WHERE { resource:Q3398461 property:P47 ?d . VALUES ( ?d ) { ( resource:Q53852 ) ( resource:Q54006 ) ( resource:Q53932 ) } }
No
action is_in
entity prev_answer
action find
entity A Agualada
relation shares border with
['A Agualada', 'shares border with', 'San Giovanni in Fiore'] ['A Agualada', 'shares border with', 'Casole Bruzio'] ['A Agualada', 'shares border with', 'Pedace']
ASK WHERE { resource:A_Agualada property:shares_border_with ?d . VALUES ( ?d ) { ( resource:Casole_Bruzio ) ( resource:Spezzano_Piccolo ) ( resource:Pedace ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1028 Q2303839
P35
Q502895
USER
Is Lowieke Staal the chief of state of Morocco ?
(Q1028,P35,Q2303839)
action is_in
entity Q2303839
action find
entity Q1028
relation P35
['Q1028', 'P35', 'Q2303839']
ASK WHERE { resource:Q1028 property:P35 resource:Q2303839 }
Morocco Lowieke Staal
action is_in
entity Lowieke Staal
action find
entity Morocco
relation head of state
['Morocco', 'head of state', 'Lowieke Staal']
ASK WHERE { resource:Morocco property:head_of_state resource:Lowieke_Staal }
[]
common name
SYSTEM
NO
(Q1028,P35,Q2303839)
action is_in
entity Q2303839
action find
entity Q1028
relation P35
[ANSWER]
['Q1028', 'P35', 'Q2303839']
ASK WHERE { resource:Q1028 property:P35 resource:Q2303839 }
No
action is_in
entity Lowieke Staal
action find
entity Morocco
relation head of state
['Morocco', 'head of state', 'Lowieke Staal']
ASK WHERE { resource:Morocco property:head_of_state resource:Lowieke_Staal }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P248
Q2342494 Q223393 Q43229
USER
Which organizations have been stated in min number of collectables or literary genres ?
(c(Q43229),P248,c(Q2342494)|c(Q223393))
action argmin
action union
action find_tuple_counts
relation P248
type Q43229
type Q2342494
action find_tuple_counts
relation P248
type Q43229
type Q223393
[{'concept': 'Q43229'}, 'P248', [{'concept': 'Q2342494'}, {'concept': 'Q223393'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?j ) WHERE { { ?e property:P248 ?s . ?e rdf:type ontology:Q43229 . ?s rdf:type ontology:Q2342494 } UNION { ?e property:P248 ?s . ?e rdf:type ontology:Q43229 . ?s rdf:type ontology:Q223393 } } GROUP BY ?e } } . { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?q ) WHERE { { ?x property:P248 ?d . ?d rdf:type ontology:Q2342494 . ?x rdf:type ontology:Q43229 } UNION { ?x property:P248 ?d . ?d rdf:type ontology:Q223393 . ?x rdf:type ontology:Q43229 } } GROUP BY ?x } . FILTER ( ?q = ?o ) }
action argmin
action union
action find_tuple_counts
relation stated in
type organization
type collectable
action find_tuple_counts
relation stated in
type organization
type literary genre
[{'concept': 'organization'}, 'stated in', [{'concept': 'collectable'}, {'concept': 'literary genre'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?j ) WHERE { { ?e property:stated_in ?s . ?e rdf:type ontology:organization . ?s rdf:type ontology:collectable } UNION { ?e property:stated_in ?s . ?e rdf:type ontology:organization . ?s rdf:type ontology:literary_genre } } GROUP BY ?e } } . { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?q ) WHERE { { ?x property:stated_in ?d . ?d rdf:type ontology:collectable . ?x rdf:type ontology:organization } UNION { ?x property:stated_in ?d . ?d rdf:type ontology:literary_genre . ?x rdf:type ontology:organization } } GROUP BY ?x } . FILTER ( ?q = ?o ) }
[]
collectable literary genre organization
Q12105874
SYSTEM
Zaporozhye aluminium combine
Q12105874
(c(Q43229),P248,c(Q2342494)|c(Q223393))
action argmin
action union
action find_tuple_counts
relation P248
type Q43229
type Q2342494
action find_tuple_counts
relation P248
type Q43229
type Q223393
[ANSWER] have been stated in min number of collectables or literary genres
[{'concept': 'Q43229'}, 'P248', [{'concept': 'Q2342494'}, {'concept': 'Q223393'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?j ) WHERE { { ?e property:P248 ?s . ?e rdf:type ontology:Q43229 . ?s rdf:type ontology:Q2342494 } UNION { ?e property:P248 ?s . ?e rdf:type ontology:Q43229 . ?s rdf:type ontology:Q223393 } } GROUP BY ?e } } . { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?q ) WHERE { { ?x property:P248 ?d . ?d rdf:type ontology:Q2342494 . ?x rdf:type ontology:Q43229 } UNION { ?x property:P248 ?d . ?d rdf:type ontology:Q223393 . ?x rdf:type ontology:Q43229 } } GROUP BY ?x } . FILTER ( ?q = ?o ) }
Zaporozhye aluminium combine
Zaporozhye aluminium combine have been stated in min number of collectables or literary genres
Zaporozhye aluminium combine
action argmin
action union
action find_tuple_counts
relation stated in
type organization
type collectable
action find_tuple_counts
relation stated in
type organization
type literary genre
[{'concept': 'organization'}, 'stated in', [{'concept': 'collectable'}, {'concept': 'literary genre'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?j ) AS ?o ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?j ) WHERE { { ?e property:stated_in ?s . ?e rdf:type ontology:organization . ?s rdf:type ontology:collectable } UNION { ?e property:stated_in ?s . ?e rdf:type ontology:organization . ?s rdf:type ontology:literary_genre } } GROUP BY ?e } } . { SELECT DISTINCT ?x ( COUNT ( ?d ) AS ?q ) WHERE { { ?x property:stated_in ?d . ?d rdf:type ontology:collectable . ?x rdf:type ontology:organization } UNION { ?x property:stated_in ?d . ?d rdf:type ontology:literary_genre . ?x rdf:type ontology:organization } } GROUP BY ?x } . FILTER ( ?q = ?o ) }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q12105874 Q157835 Q5123999
P159
Q515
USER
Does Zaporozhye aluminium combine have HQ at Zaporizhzhya and city of regional significance of Ukraine ?
(Q12105874,P159,Q157835) (Q12105874,P159,Q5123999)
action is_in
entity Q12105874
action intersection
action find_reverse
entity Q157835
relation P159
action find_reverse
entity Q5123999
relation P159
['Q12105874', 'P159', 'Q157835'] ['Q12105874', 'P159', 'Q5123999']
ASK WHERE { resource:Q12105874 property:P159 resource:Q157835 . resource:Q12105874 property:P159 resource:Q5123999 }
Zaporozhye aluminium combine Zaporizhzhya city of regional significance of Ukraine
action is_in
entity Zaporozhye aluminium combine
action intersection
action find_reverse
entity Zaporizhzhya
relation headquarters location
action find_reverse
entity city of regional significance of Ukraine
relation headquarters location
['Zaporozhye aluminium combine', 'headquarters location', 'Zaporizhzhya'] ['Zaporozhye aluminium combine', 'headquarters location', 'city of regional significance of Ukraine']
ASK WHERE { resource:Zaporozhye_aluminium_combine property:headquarters_location resource:Zaporizhzhya . resource:Zaporozhye_aluminium_combine property:headquarters_location resource:city_of_regional_significance_of_Ukraine }
[]
city
SYSTEM
YES and NO respectively
(Q12105874,P159,Q157835) (Q12105874,P159,Q5123999)
action is_in
entity Q12105874
action intersection
action find_reverse
entity Q157835
relation P159
action find_reverse
entity Q5123999
relation P159
[ANSWER]
['Q12105874', 'P159', 'Q157835'] ['Q12105874', 'P159', 'Q5123999']
ASK WHERE { resource:Q12105874 property:P159 resource:Q157835 . resource:Q12105874 property:P159 resource:Q5123999 }
YES and NO respectively
action is_in
entity Zaporozhye aluminium combine
action intersection
action find_reverse
entity Zaporizhzhya
relation headquarters location
action find_reverse
entity city of regional significance of Ukraine
relation headquarters location
['Zaporozhye aluminium combine', 'headquarters location', 'Zaporizhzhya'] ['Zaporozhye aluminium combine', 'headquarters location', 'city of regional significance of Ukraine']
ASK WHERE { resource:Zaporozhye_aluminium_combine property:headquarters_location resource:Zaporizhzhya . resource:Zaporozhye_aluminium_combine property:headquarters_location resource:city_of_regional_significance_of_Ukraine }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q15617994 Q2088357 Q17444909
USER
Which administrative territories are max number of musical ensembles and astronomical object types named after ?
(c(Q2088357)|c(Q17444909),P138,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q17444909
[[{'concept': 'Q2088357'}, {'concept': 'Q17444909'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?s WHERE { { ?h property:P138 ?s . ?s rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q2088357 } UNION { ?h property:P138 ?s . ?s rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q17444909 } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) ?d WHERE { { ?g property:P138 ?d . ?g rdf:type ontology:Q17444909 . ?d rdf:type ontology:Q15617994 } UNION { ?g property:P138 ?d . ?d rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q2088357 } } GROUP BY ?d } . FILTER ( ?r = ?i ) }
action argmax
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type astronomical object type
[[{'concept': 'musical ensemble'}, {'concept': 'astronomical object type'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?s WHERE { { ?h property:named_after ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:musical_ensemble } UNION { ?h property:named_after ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:astronomical_object_type } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) ?d WHERE { { ?g property:named_after ?d . ?g rdf:type ontology:astronomical_object_type . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:named_after ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:musical_ensemble } } GROUP BY ?d } . FILTER ( ?r = ?i ) }
[]
designation for an administrative territorial entity musical ensemble astronomical object type
Q34
SYSTEM
Sweden
Q34
(c(Q2088357)|c(Q17444909),P138,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P138
type Q15617994
type Q17444909
Max number of musical ensembles and astronomical object types named after are in [ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q17444909'}], 'P138', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?s WHERE { { ?h property:P138 ?s . ?s rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q2088357 } UNION { ?h property:P138 ?s . ?s rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q17444909 } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) ?d WHERE { { ?g property:P138 ?d . ?g rdf:type ontology:Q17444909 . ?d rdf:type ontology:Q15617994 } UNION { ?g property:P138 ?d . ?d rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q2088357 } } GROUP BY ?d } . FILTER ( ?r = ?i ) }
Sweden
Max number of musical ensembles and astronomical object types named after are in Sweden
Sweden
action argmax
action union
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation named after
type designation for an administrative territorial entity
type astronomical object type
[[{'concept': 'musical ensemble'}, {'concept': 'astronomical object type'}], 'named after', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?i ) { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?s WHERE { { ?h property:named_after ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:musical_ensemble } UNION { ?h property:named_after ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:astronomical_object_type } } GROUP BY ?s } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) ?d WHERE { { ?g property:named_after ?d . ?g rdf:type ontology:astronomical_object_type . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:named_after ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:musical_ensemble } } GROUP BY ?d } . FILTER ( ?r = ?i ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P264
Q2031291
USER
Which releases have United Kingdom as their record company ?
(c(Q2031291),P264,Q145)
action filter_type
action find_reverse
entity Q145
relation P264
type Q2031291
[{'concept': 'Q2031291'}, 'P264', 'Q145']
SELECT DISTINCT ?f WHERE { ?f property:P264 resource:Q145 . ?f rdf:type ontology:Q2031291 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation record label
type release
[{'concept': 'release'}, 'record label', 'United Kingdom']
SELECT DISTINCT ?f WHERE { ?f property:record_label resource:United_Kingdom . ?f rdf:type ontology:release }
[]
release
Q2198408 Q7655570 Q6723324
SYSTEM
Deep Cuts, Sweet Warrior, Mach Schau
Q2198408 Q7655570 Q6723324
(c(Q2031291),P264,Q145)
action filter_type
action find_reverse
entity Q145
relation P264
type Q2031291
[ANSWERS] have United Kingdom as their record company
[{'concept': 'Q2031291'}, 'P264', 'Q145']
SELECT DISTINCT ?f WHERE { ?f property:P264 resource:Q145 . ?f rdf:type ontology:Q2031291 }
Deep Cuts Sweet Warrior Mach Schau
Deep Cuts, Sweet Warrior and Mach Schau have United Kingdom as their record company
Deep Cuts Sweet Warrior Mach Schau
action filter_type
action find_reverse
entity United Kingdom
relation record label
type release
[{'concept': 'release'}, 'record label', 'United Kingdom']
SELECT DISTINCT ?f WHERE { ?f property:record_label resource:United_Kingdom . ?f rdf:type ontology:release }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P750
Q838948
USER
Who does United Kingdom serve as a distributor for ?
(c(Q838948),P750,Q145)
action filter_type
action find_reverse
entity Q145
relation P750
type Q838948
[{'concept': 'Q838948'}, 'P750', 'Q145']
SELECT DISTINCT ?z WHERE { ?z property:P750 resource:Q145 . ?z rdf:type ontology:Q838948 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation distributor
type work of art
[{'concept': 'work of art'}, 'distributor', 'United Kingdom']
SELECT DISTINCT ?z WHERE { ?z property:distributor resource:United_Kingdom . ?z rdf:type ontology:work_of_art }
[]
work of art
Q692821
SYSTEM
My Summer of Love
Q692821
(c(Q838948),P750,Q145)
action filter_type
action find_reverse
entity Q145
relation P750
type Q838948
United Kingdom serves as a distributor of [ANSWER] for
[{'concept': 'Q838948'}, 'P750', 'Q145']
SELECT DISTINCT ?z WHERE { ?z property:P750 resource:Q145 . ?z rdf:type ontology:Q838948 }
My Summer of Love
United Kingdom serves as a distributor of My Summer of Love for
My Summer of Love
action filter_type
action find_reverse
entity United Kingdom
relation distributor
type work of art
[{'concept': 'work of art'}, 'distributor', 'United Kingdom']
SELECT DISTINCT ?z WHERE { ?z property:distributor resource:United_Kingdom . ?z rdf:type ontology:work_of_art }
[]