Simple Question (Direct)
Simple Question
Q428803
P641
Q349
USER
Which sport was Jani Lyyski a part of ?
(Q428803,P641,c(Q349))
action filter_type
action find
entity Q428803
relation P641
type Q349
['Q428803', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q428803 property:P641 ?o . ?o rdf:type ontology:Q349 }
Jani Lyyski
action filter_type
action find
entity Jani Lyyski
relation sport
type sport
['Jani Lyyski', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Jani_Lyyski property:sport ?o . ?o rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q428803,P641,c(Q349))
action filter_type
action find
entity Q428803
relation P641
type Q349
Which sport was Jani Lyyski a part of
['Q428803', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { resource:Q428803 property:P641 ?o . ?o rdf:type ontology:Q349 }
association football
Which sport was Jani Lyyski a part of
association football
action filter_type
action find
entity Jani Lyyski
relation sport
type sport
['Jani Lyyski', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { resource:Jani_Lyyski property:sport ?o . ?o rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q428803
P40
Q502895
USER
Whose child is that one ?
(c(Q502895),P40,Q2736)
action filter_type
action find_reverse
entity Q428803
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q2736']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P40 resource:Q428803 }
Jani Lyyski
action filter_type
action find_reverse
entity Jani Lyyski
relation child
type common name
[{'concept': 'common name'}, 'child', 'association football']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:child resource:Jani_Lyyski }
[]
common name
Q3898856
SYSTEM
Pekka Lyyski
Q3898856
(c(Q502895),P40,Q2736)
action filter_type
action find_reverse
entity Q428803
relation P40
type Q502895
[ANSWER] is that one
[{'concept': 'Q502895'}, 'P40', 'Q2736']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P40 resource:Q428803 }
Pekka Lyyski
Pekka Lyyski is that one
Pekka Lyyski
action filter_type
action find_reverse
entity Jani Lyyski
relation child
type common name
[{'concept': 'common name'}, 'child', 'association football']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:child resource:Jani_Lyyski }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can approximately 3240 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3240
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?w = 3240 ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?w ) WHERE { ?u rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 . ?i property:P1303 ?u } GROUP BY ?u } }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3240
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?w = 3240 ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?w ) WHERE { ?u rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name . ?i property:instrument ?u } GROUP BY ?u } }
[]
musical instrument common name
Q8355 Q1444 Q128309
SYSTEM
violin, organ, drum kit
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3240
The [ANSWERS] can approximately 3240 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?w = 3240 ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?w ) WHERE { ?u rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 . ?i property:P1303 ?u } GROUP BY ?u } }
violin organ drum kit
The violin, organ and drum kit can approximately 3240 people perform with
violin organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3240
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?u WHERE { FILTER ( ?w = 3240 ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?w ) WHERE { ?u rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name . ?i property:instrument ?u } GROUP BY ?u } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1444
P1056
Q43229
USER
Who is the producer of that musical instrument ?
(c(Q43229),P1056,Q1444)
action filter_type
action find_reverse
entity Q1444
relation P1056
type Q43229
[{'concept': 'Q43229'}, 'P1056', 'Q1444']
SELECT DISTINCT ?a WHERE { ?a property:P1056 resource:Q1444 . ?a rdf:type ontology:Q43229 }
organ
action filter_type
action find_reverse
entity organ
relation product
type organization
[{'concept': 'organization'}, 'product', 'organ']
SELECT DISTINCT ?a WHERE { ?a property:product resource:organ . ?a rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q1444
SYSTEM
Did you mean organ ?
Q8355 Q1444 Q128309
(c(Q43229),P1056,Q8355) (c(Q43229),P1056,Q1444) (c(Q43229),P1056,Q128309)
[ANSWER]
[{'concept': 'Q43229'}, 'P1056', 'Q8355'] [{'concept': 'Q43229'}, 'P1056', 'Q1444'] [{'concept': 'Q43229'}, 'P1056', 'Q128309']
SELECT DISTINCT ?a WHERE { ?a property:P1056 resource:Q1444 . ?a rdf:type ontology:Q43229 }
violin organ drum kit
Did you mean organ ?
organ
[{'concept': 'organization'}, 'product', 'violin'] [{'concept': 'organization'}, 'product', 'organ'] [{'concept': 'organization'}, 'product', 'drum kit']
SELECT DISTINCT ?a WHERE { ?a property:product resource:organ . ?a rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q43229),P1056,Q1444)
[{'concept': 'Q43229'}, 'P1056', 'Q1444']
[{'concept': 'organization'}, 'product', 'organ']
[]
Q694082
SYSTEM
Marcussen & Søn
Q694082
(c(Q43229),P1056,Q1444)
action filter_type
action find_reverse
entity Q1444
relation P1056
type Q43229
The producer of that musical instrument is Marcus [ANSWER]
[{'concept': 'Q43229'}, 'P1056', 'Q1444']
SELECT DISTINCT ?a WHERE { ?a property:P1056 resource:Q1444 . ?a rdf:type ontology:Q43229 }
Marcussen & Søn
The producer of that musical instrument is Marcus Marcussen & Søn
Marcussen & Søn
action filter_type
action find_reverse
entity organ
relation product
type organization
[{'concept': 'organization'}, 'product', 'organ']
SELECT DISTINCT ?a WHERE { ?a property:product resource:organ . ?a rdf:type ontology:organization }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q694082 Q35
P17
Q1048835
USER
Does that organization belong to Denmark ?
(Q694082,P17,Q35)
action is_in
entity Q35
action find
entity Q694082
relation P17
['Q694082', 'P17', 'Q35']
ASK WHERE { resource:Q694082 property:P17 resource:Q35 }
Marcussen & Søn Denmark
action is_in
entity Denmark
action find
entity Marcussen & Søn
relation country
['Marcussen & Søn', 'country', 'Denmark']
ASK WHERE { resource:Marcussen_&_Søn property:country resource:Denmark }
[]
political territorial entity
SYSTEM
YES
(Q694082,P17,Q35)
action is_in
entity Q35
action find
entity Q694082
relation P17
[ANSWER]
['Q694082', 'P17', 'Q35']
ASK WHERE { resource:Q694082 property:P17 resource:Q35 }
Yes
action is_in
entity Denmark
action find
entity Marcussen & Søn
relation country
['Marcussen & Søn', 'country', 'Denmark']
ASK WHERE { resource:Marcussen_&_Søn property:country resource:Denmark }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q694082
P1056
Q34379
USER
What is produced by that organization ?
action filter_type
action find
entity Q694082
relation P1056
type Q34379
SELECT DISTINCT ?x WHERE { resource:Q694082 property:P1056 ?x . ?x rdf:type ontology:Q34379 }
Marcussen & Søn
action filter_type
action find
entity Marcussen & Søn
relation product
type musical instrument
SELECT DISTINCT ?x WHERE { resource:Marcussen_&_Søn property:product ?x . ?x rdf:type ontology:musical_instrument }
[]
musical instrument
Q1444
SYSTEM
organ
Q1444
action filter_type
action find
entity Q694082
relation P1056
type Q34379
The [ANSWER] is produced by that [ANSWER]ization
SELECT DISTINCT ?x WHERE { resource:Q694082 property:P1056 ?x . ?x rdf:type ontology:Q34379 }
organ
The organ is produced by that organization
organ
action filter_type
action find
entity Marcussen & Søn
relation product
type musical instrument
SELECT DISTINCT ?x WHERE { resource:Marcussen_&_Søn property:product ?x . ?x rdf:type ontology:musical_instrument }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3898856
P19
Q56061
USER
Which administrative territory is the birthplace of Pekka Lyyski ?
(Q3898856,P19,c(Q56061))
action filter_type
action find
entity Q3898856
relation P19
type Q56061
['Q3898856', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q3898856 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Pekka Lyyski
action filter_type
action find
entity Pekka Lyyski
relation place of birth
type administrative territorial entity
['Pekka Lyyski', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Pekka_Lyyski property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q207891
SYSTEM
Kokkola
Q207891
(Q3898856,P19,c(Q56061))
action filter_type
action find
entity Q3898856
relation P19
type Q56061
[ANSWER] is the birthplace of Pekka Lyyski
['Q3898856', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q3898856 property:P19 ?i . ?i rdf:type ontology:Q56061 }
Kokkola
Kokkola is the birthplace of Pekka Lyyski
Kokkola
action filter_type
action find
entity Pekka Lyyski
relation place of birth
type administrative territorial entity
['Pekka Lyyski', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Pekka_Lyyski property:place_of_birth ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]