Simple Question (Direct)
Simple Question
Q3757009
P39
Q12737077
USER
What was the position held by Gaetano Grasso ?
(Q3757009,P39,c(Q12737077))
action filter_type
action find
entity Q3757009
relation P39
type Q12737077
['Q3757009', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q3757009 property:P39 ?k . ?k rdf:type ontology:Q12737077 }
Gaetano Grasso
action filter_type
action find
entity Gaetano Grasso
relation position held
type occupation
['Gaetano Grasso', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Gaetano_Grasso property:position_held ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q18558478
SYSTEM
member of the Chamber of Deputies of the Italian Republic
Q18558478
(Q3757009,P39,c(Q12737077))
action filter_type
action find
entity Q3757009
relation P39
type Q12737077
The position held by Gaetano Grasso was a [ANSWER]
['Q3757009', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q3757009 property:P39 ?k . ?k rdf:type ontology:Q12737077 }
member of the Chamber of Deputies of the Italian Republic
The position held by Gaetano Grasso was a member of the Chamber of Deputies of the Italian Republic
member of the Chamber of Deputies of the Italian Republic
action filter_type
action find
entity Gaetano Grasso
relation position held
type occupation
['Gaetano Grasso', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Gaetano_Grasso property:position_held ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3757009
P937
Q56061
USER
Which is the work location of Gaetano Grasso ?
(Q3757009,P937,c(Q56061))
action filter_type
action find
entity Q3757009
relation P937
type Q56061
['Q3757009', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q3757009 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Gaetano Grasso
action filter_type
action find
entity Gaetano Grasso
relation work location
type administrative territorial entity
['Gaetano Grasso', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Gaetano_Grasso property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q3757009,P937,c(Q56061))
action filter_type
action find
entity Q3757009
relation P937
type Q56061
[ANSWER] is the work location of Gaetano Grasso
['Q3757009', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q3757009 property:P937 ?a . ?a rdf:type ontology:Q56061 }
Rome
Rome is the work location of Gaetano Grasso
Rome
action filter_type
action find
entity Gaetano Grasso
relation work location
type administrative territorial entity
['Gaetano Grasso', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Gaetano_Grasso property:work_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3757009
P1412
Q34770
USER
Which language is spoken by that person ?
(Q220,P1412,c(Q34770))
action filter_type
action find
entity Q3757009
relation P1412
type Q34770
['Q220', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { resource:Q3757009 property:P1412 ?c . ?c rdf:type ontology:Q34770 }
Gaetano Grasso
action filter_type
action find
entity Gaetano Grasso
relation languages spoken, written or signed
type language
['Rome', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { resource:Gaetano_Grasso property:languages_spoken,_written_or_signed ?c . ?c rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q220,P1412,c(Q34770))
action filter_type
action find
entity Q3757009
relation P1412
type Q34770
By [ANSWER] is spoken by that person
['Q220', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?c WHERE { resource:Q3757009 property:P1412 ?c . ?c rdf:type ontology:Q34770 }
Italian
By Italian is spoken by that person
Italian
action filter_type
action find
entity Gaetano Grasso
relation languages spoken, written or signed
type language
['Rome', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?c WHERE { resource:Gaetano_Grasso property:languages_spoken,_written_or_signed ?c . ?c rdf:type ontology:language }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P2439
Q34770 Q43229 Q28640
USER
Which languages are associated with more number of organizations or professions than that language ?
(c(Q43229)|c(Q28640),P2439,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q43229
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q28640
action count
action filter_multi_types
action find_reverse
entity Q652
relation P2439
type Q43229
type Q28640
[[{'concept': 'Q43229'}, {'concept': 'Q28640'}], 'P2439', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { ?f property:P2439 resource:Q652 . { { ?f rdf:type ontology:Q28640 } UNION { ?f rdf:type ontology:Q43229 } } } } . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?p ) { ( ontology:Q43229 ) ( ontology:Q28640 ) } . ?k rdf:type ?p } GROUP BY ?g } }
action greater
action union
action find_reverse_tuple_counts
relation language
type language
type organization
action find_reverse_tuple_counts
relation language
type language
type profession
action count
action filter_multi_types
action find_reverse
entity Italian
relation language
type organization
type profession
[[{'concept': 'organization'}, {'concept': 'profession'}], 'language', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { ?f property:language resource:Italian . { { ?f rdf:type ontology:profession } UNION { ?f rdf:type ontology:organization } } } } . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?p ) { ( ontology:organization ) ( ontology:profession ) } . ?k rdf:type ?p } GROUP BY ?g } }
[]
language organization profession
Q397
SYSTEM
Latin
Q397
(c(Q43229)|c(Q28640),P2439,c(Q34770))
action greater
action union
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q43229
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q28640
action count
action filter_multi_types
action find_reverse
entity Q652
relation P2439
type Q43229
type Q28640
[ANSWER] is associated with more number of organizations or professions than that language
[[{'concept': 'Q43229'}, {'concept': 'Q28640'}], 'P2439', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { ?f property:P2439 resource:Q652 . { { ?f rdf:type ontology:Q28640 } UNION { ?f rdf:type ontology:Q43229 } } } } . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?p ) { ( ontology:Q43229 ) ( ontology:Q28640 ) } . ?k rdf:type ?p } GROUP BY ?g } }
Latin
Latin is associated with more number of organizations or professions than that language
Latin
action greater
action union
action find_reverse_tuple_counts
relation language
type language
type organization
action find_reverse_tuple_counts
relation language
type language
type profession
action count
action filter_multi_types
action find_reverse
entity Italian
relation language
type organization
type profession
[[{'concept': 'organization'}, {'concept': 'profession'}], 'language', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?q > ?x ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?x ) WHERE { ?f property:language resource:Italian . { { ?f rdf:type ontology:profession } UNION { ?f rdf:type ontology:organization } } } } . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?q ) WHERE { VALUES ( ?p ) { ( ontology:organization ) ( ontology:profession ) } . ?k rdf:type ?p } GROUP BY ?g } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q397 Q833542
P1412
Q502895
USER
Does Aelius Lampridius used that language ?
(Q833542,P1412,Q397)
action is_in
entity Q397
action find
entity Q833542
relation P1412
['Q833542', 'P1412', 'Q397']
ASK WHERE { resource:Q833542 property:P1412 resource:Q397 }
Latin Aelius Lampridius
action is_in
entity Latin
action find
entity Aelius Lampridius
relation languages spoken, written or signed
['Aelius Lampridius', 'languages spoken, written or signed', 'Latin']
ASK WHERE { resource:Aelius_Lampridius property:languages_spoken,_written_or_signed resource:Latin }
[]
common name
SYSTEM
YES
(Q833542,P1412,Q397)
action is_in
entity Q397
action find
entity Q833542
relation P1412
[ANSWER]
['Q833542', 'P1412', 'Q397']
ASK WHERE { resource:Q833542 property:P1412 resource:Q397 }
Yes
action is_in
entity Latin
action find
entity Aelius Lampridius
relation languages spoken, written or signed
['Aelius Lampridius', 'languages spoken, written or signed', 'Latin']
ASK WHERE { resource:Aelius_Lampridius property:languages_spoken,_written_or_signed resource:Latin }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q220 Q2322767
P417
Q502895
USER
How many people are the names of the patron saint of Rome and St. Peter and St. Paul's Church, Wissembourg ?
(Q220,P417,c(Q502895)) (Q2322767,P417,c(Q502895))
action count
action intersection
action filter_type
action find
entity Q220
relation P417
type Q502895
action filter_type
action find
entity Q2322767
relation P417
type Q502895
['Q220', 'P417', {'concept': 'Q502895'}] ['Q2322767', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Q220 property:P417 ?c . ?c rdf:type ontology:Q502895 . ?c rdf:type ontology:Q502895 . resource:Q2322767 property:P417 ?c }
Rome St. Peter and St. Paul's Church, Wissembourg
action count
action intersection
action filter_type
action find
entity Rome
relation patron saint
type common name
action filter_type
action find
entity St. Peter and St. Paul's Church, Wissembourg
relation patron saint
type common name
['Rome', 'patron saint', {'concept': 'common name'}] ["St. Peter and St. Paul's Church, Wissembourg", 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Rome property:patron_saint ?c . ?c rdf:type ontology:common_name . ?c rdf:type ontology:common_name . resource:St._Peter_and_St._Paul's_Church,_Wissembourg property:patron_saint ?c }
[]
common name
SYSTEM
2
Q9200 Q33923
(Q220,P417,c(Q502895)) (Q2322767,P417,c(Q502895))
action count
action intersection
action filter_type
action find
entity Q220
relation P417
type Q502895
action filter_type
action find
entity Q2322767
relation P417
type Q502895
[ANSWER]
['Q220', 'P417', {'concept': 'Q502895'}] ['Q2322767', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Q220 property:P417 ?c . ?c rdf:type ontology:Q502895 . ?c rdf:type ontology:Q502895 . resource:Q2322767 property:P417 ?c }
Paul Peter
2
action count
action intersection
action filter_type
action find
entity Rome
relation patron saint
type common name
action filter_type
action find
entity St. Peter and St. Paul's Church, Wissembourg
relation patron saint
type common name
['Rome', 'patron saint', {'concept': 'common name'}] ["St. Peter and St. Paul's Church, Wissembourg", 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Rome property:patron_saint ?c . ?c rdf:type ontology:common_name . ?c rdf:type ontology:common_name . resource:St._Peter_and_St._Paul's_Church,_Wissembourg property:patron_saint ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q652
P282
Q9779
USER
Which alphabet is used as the alphabet set for Italian ?
(Q652,P282,c(Q9779))
action filter_type
action find
entity Q652
relation P282
type Q9779
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?k WHERE { resource:Q652 property:P282 ?k . ?k rdf:type ontology:Q9779 }
Italian
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?k WHERE { resource:Italian property:writing_system ?k . ?k 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
In [ANSWER] is used as the alphabet set for Italian
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?k WHERE { resource:Q652 property:P282 ?k . ?k rdf:type ontology:Q9779 }
Italian alphabet
In Italian alphabet is used as the alphabet set for Italian
Italian alphabet
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?k WHERE { resource:Italian property:writing_system ?k . ?k rdf:type ontology:alphabet }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q220
P190
Q15617994 Q56061
USER
How many administrative territories or administrative territories are partner town of Rome ?
(c(Q15617994),P190,Q220) (c(Q56061),P190,Q220)
action count
action union
action filter_type
action find_reverse
entity Q220
relation P190
type Q15617994
action filter_type
action find_reverse
entity Q220
relation P190
type Q56061
[{'concept': 'Q15617994'}, 'P190', 'Q220'] [{'concept': 'Q56061'}, 'P190', 'Q220']
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { ?f property:P190 resource:Q220 . ?f rdf:type ontology:Q15617994 } UNION { ?f property:P190 resource:Q220 . ?f rdf:type ontology:Q56061 } }
Rome
action count
action union
action filter_type
action find_reverse
entity Rome
relation sister city
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Rome
relation sister city
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Rome'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Rome']
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { ?f property:sister_city resource:Rome . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:sister_city resource:Rome . ?f rdf:type ontology:administrative_territorial_entity } }
[]
designation for an administrative territorial entity administrative territorial entity
SYSTEM
7
Q484799 Q8717 Q90 Q34647 Q13437 Q1490 Q132830
(c(Q15617994),P190,Q220) (c(Q56061),P190,Q220)
action count
action union
action filter_type
action find_reverse
entity Q220
relation P190
type Q15617994
action filter_type
action find_reverse
entity Q220
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q15617994'}, 'P190', 'Q220'] [{'concept': 'Q56061'}, 'P190', 'Q220']
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { ?f property:P190 resource:Q220 . ?f rdf:type ontology:Q15617994 } UNION { ?f property:P190 resource:Q220 . ?f rdf:type ontology:Q56061 } }
Marbella Seville Paris Johannesburg Benevento Tokyo Douala
7
action count
action union
action filter_type
action find_reverse
entity Rome
relation sister city
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Rome
relation sister city
type administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Rome'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Rome']
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { ?f property:sister_city resource:Rome . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?f property:sister_city resource:Rome . ?f rdf:type ontology:administrative_territorial_entity } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q220
P6
Q502895
USER
Which people do that administrative territory serve as the head of government for ?
action filter_type
action find
entity Q220
relation P6
type Q502895
SELECT DISTINCT ?r WHERE { resource:Q220 property:P6 ?r . ?r rdf:type ontology:Q502895 }
Rome
action filter_type
action find
entity Rome
relation head of government
type common name
SELECT DISTINCT ?r WHERE { resource:Rome property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
common name
Q405098 Q23766020
SYSTEM
Ignazio Marino, Virginia Raggi
Q405098 Q23766020
action filter_type
action find
entity Q220
relation P6
type Q502895
That administrative territory serve as the head of government for Marino [ANSWERS]
SELECT DISTINCT ?r WHERE { resource:Q220 property:P6 ?r . ?r rdf:type ontology:Q502895 }
Ignazio Marino Virginia Raggi
That administrative territory serve as the head of government for Marino Ignazio Marino and Virginia Raggi
Ignazio Marino Virginia Raggi
action filter_type
action find
entity Rome
relation head of government
type common name
SELECT DISTINCT ?r WHERE { resource:Rome property:head_of_government ?r . ?r rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q220
P6
Q56061
USER
Are those people the head of the goverment of Rome ?
(Q220,P6,Q405098) (Q220,P6,Q23766020)
action is_in
entity prev_answer
action find
entity Q220
relation P6
['Q220', 'P6', 'Q405098'] ['Q220', 'P6', 'Q23766020']
ASK WHERE { VALUES ( ?p ) { ( resource:Q405098 ) ( resource:Q23766020 ) } . resource:Q220 property:P6 ?p }
Rome
action is_in
entity prev_answer
action find
entity Rome
relation head of government
['Rome', 'head of government', 'Ignazio Marino'] ['Rome', 'head of government', 'Virginia Raggi']
ASK WHERE { VALUES ( ?p ) { ( resource:Ignazio_Marino ) ( resource:Virginia_Raggi ) } . resource:Rome property:head_of_government ?p }
[]
administrative territorial entity
SYSTEM
YES
(Q220,P6,Q405098) (Q220,P6,Q23766020)
action is_in
entity prev_answer
action find
entity Q220
relation P6
[ANSWER]
['Q220', 'P6', 'Q405098'] ['Q220', 'P6', 'Q23766020']
ASK WHERE { VALUES ( ?p ) { ( resource:Q405098 ) ( resource:Q23766020 ) } . resource:Q220 property:P6 ?p }
Yes
action is_in
entity prev_answer
action find
entity Rome
relation head of government
['Rome', 'head of government', 'Ignazio Marino'] ['Rome', 'head of government', 'Virginia Raggi']
ASK WHERE { VALUES ( ?p ) { ( resource:Ignazio_Marino ) ( resource:Virginia_Raggi ) } . resource:Rome property:head_of_government ?p }
[]