Simple Question (Direct)
Simple Question
Q18165034
P19
Q13220204
USER
Which administrative country subdivision is the place of birth of Ivica Ivušić ?
(Q18165034,P19,c(Q13220204))
action filter_type
action find
entity Q18165034
relation P19
type Q13220204
['Q18165034', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?z WHERE { resource:Q18165034 property:P19 ?z . ?z rdf:type ontology:Q13220204 }
Ivica Ivušić
action filter_type
action find
entity Ivica Ivušić
relation place of birth
type second-level administrative country subdivision
['Ivica Ivušić', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?z WHERE { resource:Ivica_Ivušić property:place_of_birth ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q1647
SYSTEM
Rijeka
Q1647
(Q18165034,P19,c(Q13220204))
action filter_type
action find
entity Q18165034
relation P19
type Q13220204
In [ANSWER] is the place of birth of Ivica Ivušić
['Q18165034', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?z WHERE { resource:Q18165034 property:P19 ?z . ?z rdf:type ontology:Q13220204 }
Rijeka
In Rijeka is the place of birth of Ivica Ivušić
Rijeka
action filter_type
action find
entity Ivica Ivušić
relation place of birth
type second-level administrative country subdivision
['Ivica Ivušić', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?z WHERE { resource:Ivica_Ivušić property:place_of_birth ?z . ?z rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18165034
P641
Q349
USER
Which sport was that person a part of ?
(Q1647,P641,c(Q349))
action filter_type
action find
entity Q18165034
relation P641
type Q349
['Q1647', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?d WHERE { resource:Q18165034 property:P641 ?d . ?d rdf:type ontology:Q349 }
Ivica Ivušić
action filter_type
action find
entity Ivica Ivušić
relation sport
type sport
['Rijeka', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?d WHERE { resource:Ivica_Ivušić property:sport ?d . ?d rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q1647,P641,c(Q349))
action filter_type
action find
entity Q18165034
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q1647', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?d WHERE { resource:Q18165034 property:P641 ?d . ?d rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Ivica Ivušić
relation sport
type sport
['Rijeka', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?d WHERE { resource:Ivica_Ivušić property:sport ?d . ?d rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q349 Q2342494 Q43229
USER
How many sports do lesser number of collectables or organizations belong to than that sport ?
(c(Q2342494)|c(Q43229),P101,c(Q349))
action count
action less
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q349
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q2342494
type Q43229
[[{'concept': 'Q2342494'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?a WHERE { { ?b property:P101 ?a . ?a rdf:type ontology:Q349 . ?b rdf:type ontology:Q2342494 } UNION { ?a rdf:type ontology:Q349 . ?b rdf:type ontology:Q43229 . ?b property:P101 ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P101 resource:Q2736 . { VALUES ( ?p ) { ( ontology:Q2342494 ) ( ontology:Q43229 ) } . ?d rdf:type ?p } } } . FILTER ( ?y < ?j ) }
action count
action less
action union
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action find_reverse_tuple_counts
relation field of work
type sport
type organization
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type collectable
type organization
[[{'concept': 'collectable'}, {'concept': 'organization'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?a WHERE { { ?b property:field_of_work ?a . ?a rdf:type ontology:sport . ?b rdf:type ontology:collectable } UNION { ?a rdf:type ontology:sport . ?b rdf:type ontology:organization . ?b property:field_of_work ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:field_of_work resource:association_football . { VALUES ( ?p ) { ( ontology:collectable ) ( ontology:organization ) } . ?d rdf:type ?p } } } . FILTER ( ?y < ?j ) }
[]
sport collectable organization
SYSTEM
0
(c(Q2342494)|c(Q43229),P101,c(Q349))
action count
action less
action union
action find_reverse_tuple_counts
relation P101
type Q349
type Q2342494
action find_reverse_tuple_counts
relation P101
type Q349
type Q43229
action count
action filter_multi_types
action find_reverse
entity Q2736
relation P101
type Q2342494
type Q43229
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q43229'}], 'P101', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?a WHERE { { ?b property:P101 ?a . ?a rdf:type ontology:Q349 . ?b rdf:type ontology:Q2342494 } UNION { ?a rdf:type ontology:Q349 . ?b rdf:type ontology:Q43229 . ?b property:P101 ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:P101 resource:Q2736 . { VALUES ( ?p ) { ( ontology:Q2342494 ) ( ontology:Q43229 ) } . ?d rdf:type ?p } } } . FILTER ( ?y < ?j ) }
0
action count
action less
action union
action find_reverse_tuple_counts
relation field of work
type sport
type collectable
action find_reverse_tuple_counts
relation field of work
type sport
type organization
action count
action filter_multi_types
action find_reverse
entity association football
relation field of work
type collectable
type organization
[[{'concept': 'collectable'}, {'concept': 'organization'}], 'field of work', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) ?a WHERE { { ?b property:field_of_work ?a . ?a rdf:type ontology:sport . ?b rdf:type ontology:collectable } UNION { ?a rdf:type ontology:sport . ?b rdf:type ontology:organization . ?b property:field_of_work ?a } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d property:field_of_work resource:association_football . { VALUES ( ?p ) { ( ontology:collectable ) ( ontology:organization ) } . ?d rdf:type ?p } } } . FILTER ( ?y < ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1647
P127
Q483110
USER
Which stadia are owned by Rijeka ?
(c(Q483110),P127,Q1647)
action filter_type
action find_reverse
entity Q1647
relation P127
type Q483110
[{'concept': 'Q483110'}, 'P127', 'Q1647']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q483110 . ?p property:P127 resource:Q1647 }
Rijeka
action filter_type
action find_reverse
entity Rijeka
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Rijeka']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:stadium . ?p property:owned_by resource:Rijeka }
[]
stadium
Q7596332 Q1277056
SYSTEM
Stadion Rujevica, Stadion Kantrida
Q7596332 Q1277056
(c(Q483110),P127,Q1647)
action filter_type
action find_reverse
entity Q1647
relation P127
type Q483110
[ANSWERS] are owned by Rijeka
[{'concept': 'Q483110'}, 'P127', 'Q1647']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q483110 . ?p property:P127 resource:Q1647 }
Stadion Rujevica Stadion Kantrida
Stadion Rujevica and Stadion Kantrida are owned by Rijeka
Stadion Rujevica Stadion Kantrida
action filter_type
action find_reverse
entity Rijeka
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Rijeka']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:stadium . ?p property:owned_by resource:Rijeka }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7596332
P17
Q15617994
USER
Which administrative territory is that stadium a part of ?
(Q7596332,P17,c(Q15617994))
action filter_type
action find
entity Q7596332
relation P17
type Q15617994
['Q7596332', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q7596332 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Stadion Rujevica
action filter_type
action find
entity Stadion Rujevica
relation country
type designation for an administrative territorial entity
['Stadion Rujevica', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Stadion_Rujevica property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q7596332
SYSTEM
Did you mean Stadion Rujevica ?
Q7596332 Q1277056
(Q7596332,P17,c(Q15617994)) (Q1277056,P17,c(Q15617994))
[ANSWER]
['Q7596332', 'P17', {'concept': 'Q15617994'}] ['Q1277056', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q7596332 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Stadion Rujevica Stadion Kantrida
Did you mean Stadion Rujevica ?
Stadion Rujevica
['Stadion Rujevica', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Stadion Kantrida', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Stadion_Rujevica property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7596332,P17,c(Q15617994))
['Q7596332', 'P17', {'concept': 'Q15617994'}]
['Stadion Rujevica', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q224
SYSTEM
Croatia
Q224
(Q7596332,P17,c(Q15617994))
action filter_type
action find
entity Q7596332
relation P17
type Q15617994
[ANSWER] is that stadium a part of
['Q7596332', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q7596332 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Croatia
Croatia is that stadium a part of
Croatia
action filter_type
action find
entity Stadion Rujevica
relation country
type designation for an administrative territorial entity
['Stadion Rujevica', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Stadion_Rujevica property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q224 Q35053 Q515854
P47
Q15617994
USER
Is that administrative territory bordered by Gaby and Rott ?
(Q224,P47,Q35053) (Q224,P47,Q515854)
action is_in
entity Q224
action intersection
action find_reverse
entity Q35053
relation P47
action find_reverse
entity Q515854
relation P47
['Q224', 'P47', 'Q35053'] ['Q224', 'P47', 'Q515854']
ASK WHERE { resource:Q224 property:P47 resource:Q35053 . resource:Q224 property:P47 resource:Q515854 }
Croatia Gaby Rott
action is_in
entity Croatia
action intersection
action find_reverse
entity Gaby
relation shares border with
action find_reverse
entity Rott
relation shares border with
['Croatia', 'shares border with', 'Gaby'] ['Croatia', 'shares border with', 'Rott']
ASK WHERE { resource:Croatia property:shares_border_with resource:Gaby . resource:Croatia property:shares_border_with resource:Rott }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q224,P47,Q35053) (Q224,P47,Q515854)
action is_in
entity Q224
action intersection
action find_reverse
entity Q35053
relation P47
action find_reverse
entity Q515854
relation P47
[ANSWER]
['Q224', 'P47', 'Q35053'] ['Q224', 'P47', 'Q515854']
ASK WHERE { resource:Q224 property:P47 resource:Q35053 . resource:Q224 property:P47 resource:Q515854 }
No
action is_in
entity Croatia
action intersection
action find_reverse
entity Gaby
relation shares border with
action find_reverse
entity Rott
relation shares border with
['Croatia', 'shares border with', 'Gaby'] ['Croatia', 'shares border with', 'Rott']
ASK WHERE { resource:Croatia property:shares_border_with resource:Gaby . resource:Croatia property:shares_border_with resource:Rott }
[]