Simple Question (Direct)
Simple Question
Q603216
P1412
Q34770
USER
Which language is Antonio Margheriti capable of writing ?
(Q603216,P1412,c(Q34770))
action filter_type
action find
entity Q603216
relation P1412
type Q34770
['Q603216', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q603216 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Antonio Margheriti
action filter_type
action find
entity Antonio Margheriti
relation languages spoken, written or signed
type language
['Antonio Margheriti', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Antonio_Margheriti property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q603216,P1412,c(Q34770))
action filter_type
action find
entity Q603216
relation P1412
type Q34770
[ANSWER] is Antonio Margheriti capable of writing
['Q603216', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q603216 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Italian
Italian is Antonio Margheriti capable of writing
Italian
action filter_type
action find
entity Antonio Margheriti
relation languages spoken, written or signed
type language
['Antonio Margheriti', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Antonio_Margheriti property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q603216
P22
Q502895
USER
Who is the offspring of that one ?
(c(Q502895),P22,Q652)
action filter_type
action find_reverse
entity Q603216
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q652']
SELECT DISTINCT ?j WHERE { ?j property:P22 resource:Q603216 . ?j rdf:type ontology:Q502895 }
Antonio Margheriti
action filter_type
action find_reverse
entity Antonio Margheriti
relation father
type common name
[{'concept': 'common name'}, 'father', 'Italian']
SELECT DISTINCT ?j WHERE { ?j property:father resource:Antonio_Margheriti . ?j rdf:type ontology:common_name }
[]
common name
Q1287414
SYSTEM
Edoardo Margheriti
Q1287414
(c(Q502895),P22,Q652)
action filter_type
action find_reverse
entity Q603216
relation P22
type Q502895
The offspring of that one is the [ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q652']
SELECT DISTINCT ?j WHERE { ?j property:P22 resource:Q603216 . ?j rdf:type ontology:Q502895 }
Edoardo Margheriti
The offspring of that one is the Edoardo Margheriti
Edoardo Margheriti
action filter_type
action find_reverse
entity Antonio Margheriti
relation father
type common name
[{'concept': 'common name'}, 'father', 'Italian']
SELECT DISTINCT ?j WHERE { ?j property:father resource:Antonio_Margheriti . ?j rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q652
P282
Q9779
USER
What is the writing system of Italian known as ?
(Q652,P282,c(Q9779))
action filter_type
action find
entity Q652
relation P282
type Q9779
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?s WHERE { resource:Q652 property:P282 ?s . ?s rdf:type ontology:Q9779 }
Italian
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?s WHERE { resource:Italian property:writing_system ?s . ?s rdf:type ontology:alphabet }
[]
alphabet
Q550383
SYSTEM
Italian alphabet
Q550383
(Q652,P282,c(Q9779))
action filter_type
action find
entity Q652
relation P282
type Q9779
The writing system of Italian known as is the [ANSWER]
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?s WHERE { resource:Q652 property:P282 ?s . ?s rdf:type ontology:Q9779 }
Italian alphabet
The writing system of Italian known as is the Italian alphabet
Italian alphabet
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?s WHERE { resource:Italian property:writing_system ?s . ?s rdf:type ontology:alphabet }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q42365
Q9779
USER
And how about Old English?
(Q42365,P282,c(Q9779))
action filter_type
action find
entity Q42365
relation P282
type Q9779
['Q42365', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?b WHERE { resource:Q42365 property:P282 ?b . ?b rdf:type ontology:Q9779 }
Old English
action filter_type
action find
entity Old English
relation writing system
type alphabet
['Old English', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?b WHERE { resource:Old_English property:writing_system ?b . ?b rdf:type ontology:alphabet }
[]
alphabet
Q2712936
SYSTEM
futhorc
Q2712936
(Q42365,P282,c(Q9779))
action filter_type
action find
entity Q42365
relation P282
type Q9779
[ANSWER]
['Q42365', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?b WHERE { resource:Q42365 property:P282 ?b . ?b rdf:type ontology:Q9779 }
futhorc
futhorc
action filter_type
action find
entity Old English
relation writing system
type alphabet
['Old English', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?b WHERE { resource:Old_English property:writing_system ?b . ?b rdf:type ontology:alphabet }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P282
Q8192 Q9779 Q34770
USER
Which languages use max number of writing systems and alphabets as the writing system ?
(c(Q34770),P282,c(Q8192)|c(Q9779))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?g WHERE { VALUES ( ?r ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } . ?x rdf:type ?r } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) ?v WHERE { { ?v property:P282 ?t . ?v rdf:type ontology:Q34770 . ?t rdf:type ontology:Q8192 } UNION { ?v property:P282 ?t . ?v rdf:type ontology:Q34770 . ?t rdf:type ontology:Q9779 } } GROUP BY ?v } . FILTER ( ?c = ?w ) }
action argmax
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?g WHERE { VALUES ( ?r ) { ( ontology:writing_system ) ( ontology:alphabet ) } . ?x rdf:type ?r } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) ?v WHERE { { ?v property:writing_system ?t . ?v rdf:type ontology:language . ?t rdf:type ontology:writing_system } UNION { ?v property:writing_system ?t . ?v rdf:type ontology:language . ?t rdf:type ontology:alphabet } } GROUP BY ?v } . FILTER ( ?c = ?w ) }
[]
writing system alphabet language
Q182695
SYSTEM
Late Old Japanese
Q182695
(c(Q34770),P282,c(Q8192)|c(Q9779))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
[ANSWER] use max number of writing systems and alphabets as the writing system
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?g WHERE { VALUES ( ?r ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } . ?x rdf:type ?r } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) ?v WHERE { { ?v property:P282 ?t . ?v rdf:type ontology:Q34770 . ?t rdf:type ontology:Q8192 } UNION { ?v property:P282 ?t . ?v rdf:type ontology:Q34770 . ?t rdf:type ontology:Q9779 } } GROUP BY ?v } . FILTER ( ?c = ?w ) }
Late Old Japanese
Late Old Japanese use max number of writing systems and alphabets as the writing system
Late Old Japanese
action argmax
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?w ) { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?g WHERE { VALUES ( ?r ) { ( ontology:writing_system ) ( ontology:alphabet ) } . ?x rdf:type ?r } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) ?v WHERE { { ?v property:writing_system ?t . ?v rdf:type ontology:language . ?t rdf:type ontology:writing_system } UNION { ?v property:writing_system ?t . ?v rdf:type ontology:language . ?t rdf:type ontology:alphabet } } GROUP BY ?v } . FILTER ( ?c = ?w ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P1412
Q502895
USER
How many people use that language ?
(c(Q502895),P1412,Q182695)
action count
action filter_type
action find_reverse
entity Q182695
relation P1412
type Q502895
[{'concept': 'Q502895'}, 'P1412', 'Q182695']
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g property:P1412 resource:Q182695 . ?g rdf:type ontology:Q502895 }
action count
action filter_type
action find_reverse
entity Late Old Japanese
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Late Old Japanese']
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g property:languages_spoken,_written_or_signed resource:Late_Old_Japanese . ?g rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q451991
(c(Q502895),P1412,Q182695)
action count
action filter_type
action find_reverse
entity Q182695
relation P1412
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1412', 'Q182695']
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g property:P1412 resource:Q182695 . ?g rdf:type ontology:Q502895 }
Ariwara no Narihira
1
action count
action filter_type
action find_reverse
entity Late Old Japanese
relation languages spoken, written or signed
type common name
[{'concept': 'common name'}, 'languages spoken, written or signed', 'Late Old Japanese']
SELECT DISTINCT ( COUNT ( ?g ) AS ?i ) WHERE { ?g property:languages_spoken,_written_or_signed resource:Late_Old_Japanese . ?g rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q603216
P19
Q56061
USER
Where was Antonio Margheriti born ?
(Q603216,P19,c(Q56061))
action filter_type
action find
entity Q603216
relation P19
type Q56061
['Q603216', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q603216 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Antonio Margheriti
action filter_type
action find
entity Antonio Margheriti
relation place of birth
type administrative territorial entity
['Antonio Margheriti', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Antonio_Margheriti property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q603216,P19,c(Q56061))
action filter_type
action find
entity Q603216
relation P19
type Q56061
Antonio Margheriti was born in [ANSWER]
['Q603216', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q603216 property:P19 ?k . ?k rdf:type ontology:Q56061 }
Rome
Antonio Margheriti was born in Rome
Rome
action filter_type
action find
entity Antonio Margheriti
relation place of birth
type administrative territorial entity
['Antonio Margheriti', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Antonio_Margheriti property:place_of_birth ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4075035
Q56061
USER
And how about Aleksandr Bayev?
(Q4075035,P19,c(Q56061))
action filter_type
action find
entity Q4075035
relation P19
type Q56061
['Q4075035', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q4075035 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Aleksandr Bayev
action filter_type
action find
entity Aleksandr Bayev
relation place of birth
type administrative territorial entity
['Aleksandr Bayev', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Aleksandr_Bayev property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q53139
SYSTEM
Chita
Q53139
(Q4075035,P19,c(Q56061))
action filter_type
action find
entity Q4075035
relation P19
type Q56061
[ANSWER]
['Q4075035', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q4075035 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Chita
Chita
action filter_type
action find
entity Aleksandr Bayev
relation place of birth
type administrative territorial entity
['Aleksandr Bayev', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Aleksandr_Bayev property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q220
P740
Q2088357
USER
Which musical ensembles were formed at Rome ?
(c(Q2088357),P740,Q220)
action filter_type
action find_reverse
entity Q220
relation P740
type Q2088357
[{'concept': 'Q2088357'}, 'P740', 'Q220']
SELECT DISTINCT ?n WHERE { ?n property:P740 resource:Q220 . ?n rdf:type ontology:Q2088357 }
Rome
action filter_type
action find_reverse
entity Rome
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Rome']
SELECT DISTINCT ?n WHERE { ?n property:location_of_formation resource:Rome . ?n rdf:type ontology:musical_ensemble }
[]
musical ensemble
Q931147 Q1242662 Q1457359
SYSTEM
Stormlord, Dope Stars Inc., Hopes Die Last
Q5017571 Q17154423 Q7605710 Q612726 Q18155652 Q1242662 Q931147 Q6679998 Q1457359
(c(Q2088357),P740,Q220)
action filter_type
action find_reverse
entity Q220
relation P740
type Q2088357
Stormlord, Dope Stars Inc. and Hopes die Last were formed at Rome
[{'concept': 'Q2088357'}, 'P740', 'Q220']
SELECT DISTINCT ?n WHERE { ?n property:P740 resource:Q220 . ?n rdf:type ontology:Q2088357 }
Cain Dear Jack Steel Seal Cugini di Campagna Teapot Industries Dope Stars Inc. Stormlord Lord Vampyr's Shadowsreign Hopes Die Last
Stormlord, Dope Stars Inc. and Hopes die Last were formed at Rome
Stormlord Dope Stars Inc. Hopes Die Last
action filter_type
action find_reverse
entity Rome
relation location of formation
type musical ensemble
[{'concept': 'musical ensemble'}, 'location of formation', 'Rome']
SELECT DISTINCT ?n WHERE { ?n property:location_of_formation resource:Rome . ?n rdf:type ontology:musical_ensemble }
[]