Simple Question (Direct)
Simple Question
Q3707914
P19
Q15617994
USER
Which administrative territory is the birthplace of Dino Fiorini ?
(Q3707914,P19,c(Q15617994))
action filter_type
action find
entity Q3707914
relation P19
type Q15617994
['Q3707914', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q3707914 property:P19 ?p }
Dino Fiorini
action filter_type
action find
entity Dino Fiorini
relation place of birth
type designation for an administrative territorial entity
['Dino Fiorini', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Dino_Fiorini property:place_of_birth ?p }
[]
designation for an administrative territorial entity
Q94988
SYSTEM
San Giorgio di Piano
Q94988
(Q3707914,P19,c(Q15617994))
action filter_type
action find
entity Q3707914
relation P19
type Q15617994
The [ANSWER] is the birthplace of Dino Fiorini
['Q3707914', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q15617994 . resource:Q3707914 property:P19 ?p }
San Giorgio di Piano
The San Giorgio di Piano is the birthplace of Dino Fiorini
San Giorgio di Piano
action filter_type
action find
entity Dino Fiorini
relation place of birth
type designation for an administrative territorial entity
['Dino Fiorini', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Dino_Fiorini property:place_of_birth ?p }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3707914
P106
Q12737077
USER
Which occupation is the profession of Dino Fiorini ?
(Q3707914,P106,c(Q12737077))
action filter_type
action find
entity Q3707914
relation P106
type Q12737077
['Q3707914', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q3707914 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Dino Fiorini
action filter_type
action find
entity Dino Fiorini
relation occupation
type occupation
['Dino Fiorini', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Dino_Fiorini property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q3707914,P106,c(Q12737077))
action filter_type
action find
entity Q3707914
relation P106
type Q12737077
Player [ANSWER] is the profession of Dino Fiorini
['Q3707914', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q3707914 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
association football player
Player association football player is the profession of Dino Fiorini
association football player
action filter_type
action find
entity Dino Fiorini
relation occupation
type occupation
['Dino Fiorini', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Dino_Fiorini property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7540567
Q12737077
USER
And what about Slim Charles?
(Q7540567,P106,c(Q12737077))
action filter_type
action find
entity Q7540567
relation P106
type Q12737077
['Q7540567', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q7540567 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Slim Charles
action filter_type
action find
entity Slim Charles
relation occupation
type occupation
['Slim Charles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Slim_Charles property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q378770
SYSTEM
contract killer
Q378770
(Q7540567,P106,c(Q12737077))
action filter_type
action find
entity Q7540567
relation P106
type Q12737077
[ANSWER]
['Q7540567', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q7540567 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
contract killer
contract killer
action filter_type
action find
entity Slim Charles
relation occupation
type occupation
['Slim Charles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Slim_Charles property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q378770 Q15710700
P106
Q502895
USER
Does Tadija Miric have career as that occupation ?
(Q15710700,P106,Q378770)
action is_in
entity Q15710700
action find
entity Q378770
relation P106
['Q15710700', 'P106', 'Q378770']
ASK WHERE { resource:Q378770 property:P106 resource:Q15710700 }
contract killer Tadija Miric
action is_in
entity Tadija Miric
action find
entity contract killer
relation occupation
['Tadija Miric', 'occupation', 'contract killer']
ASK WHERE { resource:contract_killer property:occupation resource:Tadija_Miric }
[]
common name
SYSTEM
NO
(Q15710700,P106,Q378770)
action is_in
entity Q15710700
action find
entity Q378770
relation P106
[ANSWER]
['Q15710700', 'P106', 'Q378770']
ASK WHERE { resource:Q378770 property:P106 resource:Q15710700 }
No
action is_in
entity Tadija Miric
action find
entity contract killer
relation occupation
['Tadija Miric', 'occupation', 'contract killer']
ASK WHERE { resource:contract_killer property:occupation resource:Tadija_Miric }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q94988
P17
Q15617994
USER
How many administrative territories are San Giorgio di Piano present in ?
(Q94988,P17,c(Q15617994))
action count
action filter_type
action find
entity Q94988
relation P17
type Q15617994
['Q94988', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:Q94988 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
San Giorgio di Piano
action count
action filter_type
action find
entity San Giorgio di Piano
relation country
type designation for an administrative territorial entity
['San Giorgio di Piano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:San_Giorgio_di_Piano property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q38
(Q94988,P17,c(Q15617994))
action count
action filter_type
action find
entity Q94988
relation P17
type Q15617994
[ANSWER]
['Q94988', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:Q94988 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Italy
1
action count
action filter_type
action find
entity San Giorgio di Piano
relation country
type designation for an administrative territorial entity
['San Giorgio di Piano', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { resource:San_Giorgio_di_Piano property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q26282039
Q15617994
USER
And also tell me about Poplar Farmhouse?
(Q26282039,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26282039
relation P17
type Q15617994
['Q26282039', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Q26282039 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
Poplar Farmhouse
action count
action filter_type
action find
entity Poplar Farmhouse
relation country
type designation for an administrative territorial entity
['Poplar Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Poplar_Farmhouse property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q26282039,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26282039
relation P17
type Q15617994
[ANSWER]
['Q26282039', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Q26282039 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Poplar Farmhouse
relation country
type designation for an administrative territorial entity
['Poplar Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { resource:Poplar_Farmhouse property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3713206 Q3707914
P20
Q15617994
USER
Which administrative territories did the demise of Dino Fiorini or Domenico Rasi occur ?
OR((Q3707914,P20,c(Q15617994)), (Q3713206,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q3707914
relation P20
action find
entity Q3713206
relation P20
type Q15617994
{'OR': [['Q3707914', 'P20', {'concept': 'Q15617994'}], ['Q3713206', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q3707914 property:P20 ?l } UNION { resource:Q3713206 property:P20 ?l } } . ?l rdf:type ontology:Q15617994 }
Domenico Rasi Dino Fiorini
action filter_type
action union
action find
entity Dino Fiorini
relation place of death
action find
entity Domenico Rasi
relation place of death
type designation for an administrative territorial entity
{'OR': [['Dino Fiorini', 'place of death', {'concept': 'designation for an administrative territorial entity'}], ['Domenico Rasi', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Dino_Fiorini property:place_of_death ?l } UNION { resource:Domenico_Rasi property:place_of_death ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q111800 Q94968
SYSTEM
Cattolica, Monterenzio
Q111800 Q94968
OR((Q3707914,P20,c(Q15617994)), (Q3713206,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q3707914
relation P20
action find
entity Q3713206
relation P20
type Q15617994
The demise of Dino Fiorini or Domenico Rasi occurred in [ANSWERS]
{'OR': [['Q3707914', 'P20', {'concept': 'Q15617994'}], ['Q3713206', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q3707914 property:P20 ?l } UNION { resource:Q3713206 property:P20 ?l } } . ?l rdf:type ontology:Q15617994 }
Cattolica Monterenzio
The demise of Dino Fiorini or Domenico Rasi occurred in Cattolica and Monterenzio
Cattolica Monterenzio
action filter_type
action union
action find
entity Dino Fiorini
relation place of death
action find
entity Domenico Rasi
relation place of death
type designation for an administrative territorial entity
{'OR': [['Dino Fiorini', 'place of death', {'concept': 'designation for an administrative territorial entity'}], ['Domenico Rasi', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Dino_Fiorini property:place_of_death ?l } UNION { resource:Domenico_Rasi property:place_of_death ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q111800
P417
Q502895
USER
Who is the patron saint of that administrative territory ?
(Q111800,P417,c(Q502895))
action filter_type
action find
entity Q111800
relation P417
type Q502895
['Q111800', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q111800 property:P417 ?d . ?d rdf:type ontology:Q502895 }
Cattolica
action filter_type
action find
entity Cattolica
relation patron saint
type common name
['Cattolica', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Cattolica property:patron_saint ?d . ?d rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q94968
SYSTEM
Did you mean Monterenzio ?
Q111800 Q94968
(Q111800,P417,c(Q502895)) (Q94968,P417,c(Q502895))
[ANSWER]
['Q111800', 'P417', {'concept': 'Q502895'}] ['Q94968', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q111800 property:P417 ?d . ?d rdf:type ontology:Q502895 }
Cattolica Monterenzio
Did you mean Monterenzio ?
Monterenzio
['Cattolica', 'patron saint', {'concept': 'common name'}] ['Monterenzio', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Cattolica property:patron_saint ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Cattolica. Could you tell me the answer for that?
(Q111800,P417,c(Q502895))
Q111800
['Q111800', 'P417', {'concept': 'Q502895'}]
['Cattolica', 'patron saint', {'concept': 'common name'}]
[]
Q131945
SYSTEM
Pius V
Q131945
(Q111800,P417,c(Q502895))
action filter_type
action find
entity Q111800
relation P417
type Q502895
The patron saint of that administrative territory is Pope [ANSWER]
['Q111800', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q111800 property:P417 ?d . ?d rdf:type ontology:Q502895 }
Pius V
The patron saint of that administrative territory is Pope Pius V
Pius V
action filter_type
action find
entity Cattolica
relation patron saint
type common name
['Cattolica', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Cattolica property:patron_saint ?d . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q15961987
USER
Which television genres did max number of people dub for ?
(c(Q15961987),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15961987
type Q502895
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?f ) { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?y ) WHERE { ?a rdf:type ontology:Q15961987 . ?c rdf:type ontology:Q502895 . ?a property:P725 ?c } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?l ) WHERE { ?t rdf:type ontology:Q15961987 . ?b rdf:type ontology:Q502895 . ?t property:P725 ?b } GROUP BY ?t } . FILTER ( ?l = ?f ) }
action argmax
action find_tuple_counts
relation voice actor
type television genre
type common name
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?f ) { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?y ) WHERE { ?a rdf:type ontology:television_genre . ?c rdf:type ontology:common_name . ?a property:voice_actor ?c } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?l ) WHERE { ?t rdf:type ontology:television_genre . ?b rdf:type ontology:common_name . ?t property:voice_actor ?b } GROUP BY ?t } . FILTER ( ?l = ?f ) }
[]
common name television genre
Q22773153
SYSTEM
Milo Murphy's Law
Q22773153
(c(Q15961987),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15961987
type Q502895
Max number of people dubbed by [ANSWER]
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?f ) { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?y ) WHERE { ?a rdf:type ontology:Q15961987 . ?c rdf:type ontology:Q502895 . ?a property:P725 ?c } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?l ) WHERE { ?t rdf:type ontology:Q15961987 . ?b rdf:type ontology:Q502895 . ?t property:P725 ?b } GROUP BY ?t } . FILTER ( ?l = ?f ) }
Milo Murphy's Law
Max number of people dubbed by Milo Murphy's Law
Milo Murphy's Law
action argmax
action find_tuple_counts
relation voice actor
type television genre
type common name
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?f ) { SELECT DISTINCT ?a ( COUNT ( ?c ) AS ?y ) WHERE { ?a rdf:type ontology:television_genre . ?c rdf:type ontology:common_name . ?a property:voice_actor ?c } GROUP BY ?a } } . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?l ) WHERE { ?t rdf:type ontology:television_genre . ?b rdf:type ontology:common_name . ?t property:voice_actor ?b } GROUP BY ?t } . FILTER ( ?l = ?f ) }
[]