Simple Question (Direct)
Simple Question
Q736772
P102
Q7210356
USER
Which party does Levi Lincoln, Jr. belong to ?
(Q736772,P102,c(Q7210356))
action filter_type
action find
entity Q736772
relation P102
type Q7210356
['Q736772', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q7210356 . resource:Q736772 property:P102 ?z }
Levi Lincoln, Jr.
action filter_type
action find
entity Levi Lincoln, Jr.
relation member of political party
type political organization
['Levi Lincoln, Jr.', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:political_organization . resource:Levi_Lincoln,_Jr. property:member_of_political_party ?z }
[]
political organization
Q42183
SYSTEM
Whig Party
Q42183
(Q736772,P102,c(Q7210356))
action filter_type
action find
entity Q736772
relation P102
type Q7210356
Levi Lincoln , Jr. belongs to the [ANSWER]
['Q736772', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q7210356 . resource:Q736772 property:P102 ?z }
Whig Party
Levi Lincoln , Jr. belongs to the Whig Party
Whig Party
action filter_type
action find
entity Levi Lincoln, Jr.
relation member of political party
type political organization
['Levi Lincoln, Jr.', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:political_organization . resource:Levi_Lincoln,_Jr. property:member_of_political_party ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q736772
P21
Q290
USER
Which sex does Levi Lincoln, Jr. possess ?
(Q736772,P21,c(Q290))
action filter_type
action find
entity Q736772
relation P21
type Q290
['Q736772', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q736772 property:P21 ?o . ?o rdf:type ontology:Q290 }
Levi Lincoln, Jr.
action filter_type
action find
entity Levi Lincoln, Jr.
relation gender
type sex
['Levi Lincoln, Jr.', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Levi_Lincoln,_Jr. property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q736772,P21,c(Q290))
action filter_type
action find
entity Q736772
relation P21
type Q290
Levi Lincoln , Jr. possesses a [ANSWER]
['Q736772', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q736772 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
Levi Lincoln , Jr. possesses a male
male
action filter_type
action find
entity Levi Lincoln, Jr.
relation gender
type sex
['Levi Lincoln, Jr.', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Levi_Lincoln,_Jr. property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q736772
P39
Q12737077
USER
Which occupations were the positions for which Levi Lincoln, Jr. were appointed ?
(Q736772,P39,c(Q12737077))
action filter_type
action find
entity Q736772
relation P39
type Q12737077
['Q736772', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q736772 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Levi Lincoln, Jr.
action filter_type
action find
entity Levi Lincoln, Jr.
relation position held
type occupation
['Levi Lincoln, Jr.', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Levi_Lincoln,_Jr. property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q13218630 Q17342542 Q887117
SYSTEM
United States representative, Member of the Massachusetts House of Representatives, Governor of Massachusetts
Q13218630 Q17342542 Q887117
(Q736772,P39,c(Q12737077))
action filter_type
action find
entity Q736772
relation P39
type Q12737077
The [ANSWERS] were the positions for which Levi Lincoln, Jr. were appointed
['Q736772', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q736772 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
United States representative Member of the Massachusetts House of Representatives Governor of Massachusetts
The United States representative, Member of the Massachusetts House of Representatives and Governor of Massachusetts were the positions for which Levi Lincoln, Jr. were appointed
United States representative Member of the Massachusetts House of Representatives Governor of Massachusetts
action filter_type
action find
entity Levi Lincoln, Jr.
relation position held
type occupation
['Levi Lincoln, Jr.', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Levi_Lincoln,_Jr. property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11852910
Q12737077
USER
And how about Arvi Ahmavaara?
(Q11852910,P39,c(Q12737077))
action filter_type
action find
entity Q11852910
relation P39
type Q12737077
['Q11852910', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q11852910 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
Arvi Ahmavaara
action filter_type
action find
entity Arvi Ahmavaara
relation position held
type occupation
['Arvi Ahmavaara', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Arvi_Ahmavaara property:position_held ?w . ?w rdf:type ontology:occupation }
[]
occupation
Q17592486 Q1294631
SYSTEM
member of the Parliament of Finland, Minister of Justice
Q17592486 Q1294631
(Q11852910,P39,c(Q12737077))
action filter_type
action find
entity Q11852910
relation P39
type Q12737077
[ANSWERS]
['Q11852910', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?w WHERE { resource:Q11852910 property:P39 ?w . ?w rdf:type ontology:Q12737077 }
member of the Parliament of Finland Minister of Justice
member of the Parliament of Finland Minister of Justice
action filter_type
action find
entity Arvi Ahmavaara
relation position held
type occupation
['Arvi Ahmavaara', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?w WHERE { resource:Arvi_Ahmavaara property:position_held ?w . ?w rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11852910
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q17592486,P27,c(Q15617994)) (Q1294631,P27,c(Q15617994))
action filter_type
action find
entity Q11852910
relation P27
type Q15617994
['Q17592486', 'P27', {'concept': 'Q15617994'}] ['Q1294631', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q11852910 property:P27 ?k }
Arvi Ahmavaara
action filter_type
action find
entity Arvi Ahmavaara
relation country of citizenship
type designation for an administrative territorial entity
['member of the Parliament of Finland', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Minister of Justice', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Arvi_Ahmavaara property:country_of_citizenship ?k }
[]
designation for an administrative territorial entity
Q33
SYSTEM
Finland
Q33
(Q17592486,P27,c(Q15617994)) (Q1294631,P27,c(Q15617994))
action filter_type
action find
entity Q11852910
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of that person
['Q17592486', 'P27', {'concept': 'Q15617994'}] ['Q1294631', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q15617994 . resource:Q11852910 property:P27 ?k }
Finland
The Finland is the country of citizenship of that person
Finland
action filter_type
action find
entity Arvi Ahmavaara
relation country of citizenship
type designation for an administrative territorial entity
['member of the Parliament of Finland', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Minister of Justice', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Arvi_Ahmavaara property:country_of_citizenship ?k }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q838948 Q3305213
USER
Which occupations are expressed in min number of works of art or paintings ?
(c(Q838948)|c(Q3305213),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?e WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?b WHERE { VALUES ( ?q ) { ( ontology:Q3305213 ) ( ontology:Q838948 ) } . ?x rdf:type ?q } GROUP BY ?b } . FILTER ( ?j = ?a ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?e WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:painting ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?b WHERE { VALUES ( ?q ) { ( ontology:painting ) ( ontology:work_of_art ) } . ?x rdf:type ?q } GROUP BY ?b } . FILTER ( ?j = ?a ) }
[]
occupation work of art painting
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q1569439 Q16735601 Q37226 Q152355 Q1218776 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q4610556 Q161944 Q472898 Q45199 Q7358 Q19968805 Q185196 Q328325 Q11900058 Q212238 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q170790 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q327321 Q549322 Q327029 Q2309900 Q5371902 Q17126809 Q848550 Q386854 Q202648 Q1753370 Q107711 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q537575 Q20826540 Q715301 Q11338576 Q15954519 Q29182 Q326358 Q5575361 Q1161133 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q15725121 Q185992 Q133485 Q674067 Q901 Q589897 Q4594605 Q242468 Q2596569 Q1234713 Q848466 Q116 Q1509714 Q152002 Q1511216 Q16533 Q2412523 Q211423 Q11063 Q774306 Q2276446 Q18575684 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q253567 Q3439798 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q765541 Q2011889 Q49476 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q191808 Q182436 Q2259532 Q373017 Q2180295 Q1294787 Q2627286 Q437512 Q13414980 Q849424 Q7622988 Q157195
(c(Q838948)|c(Q3305213),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
[ANSWERS] are expressed in min number of works of art or paintings
[[{'concept': 'Q838948'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?e WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?b WHERE { VALUES ( ?q ) { ( ontology:Q3305213 ) ( ontology:Q838948 ) } . ?x rdf:type ?q } GROUP BY ?b } . FILTER ( ?j = ?a ) }
fiddler acrobat milkmaid worker standard-bearer sheep shearer florist teacher cobbler arriero sewing executor astronaut cooper house painter organist double-bassist actor valet sex worker woman of letters ventriloquist amateur wrestler king of marksmen geographer Archbishop of Canterbury minister receptionist milkman coachman model deacon wet nurse sailor clown spinner midwife stonemason explorer civil servant abbé architect street musician nurse parson mathematician mayor bell-ringer miner beekeeper washerwoman cellist bricklayer torero mechanic helmsman harpsichordist rescuer VOC Opperhoofd in Japan drummer referee curate firefighter dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja friar hobo fishmonger recorder player laborer gravedigger erudite comics artist boxer alchemist bishop joiner goatherd pedicure courtesan member of parliament bartender clogmaker peddler reaper condottiero canon bassoonist mufti rabbi mime artist scientist mahout magistrate tailor housekeeper theologian courier monarch porter pastor courtier judge matador goldsmith astronomer surgeon domestic worker cook embroiderer exotic dancer lyricist plasterer gardener composer miller tightrope walker apprentice King of France woodcutter lacemaker Snake charming carpenter school teacher baker knife grinder police officer guard Maid of honour kazasker madam archbishop boatman salesperson cricketer aviator milkmaid nun librarian cleric basketry mail carrier artisan bushranger weaver Australian-rules footballer sea captain street artist waiting staff
Nurse, tailor and librarian are expressed in min number of works of art or paintings
nurse tailor librarian
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
[[{'concept': 'work of art'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?a ) { SELECT DISTINCT ( COUNT ( ?k ) AS ?i ) ?e WHERE { ?k rdf:type ?g . VALUES ( ?g ) { ( ontology:work_of_art ) ( ontology:painting ) } } GROUP BY ?e } } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) ?b WHERE { VALUES ( ?q ) { ( ontology:painting ) ( ontology:work_of_art ) } . ?x rdf:type ?q } GROUP BY ?b } . FILTER ( ?j = ?a ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q242468
P417
Q502895
USER
What are the names of the patron saint of tailor ?
(Q242468,P417,c(Q502895))
action filter_type
action find
entity Q242468
relation P417
type Q502895
['Q242468', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q242468 property:P417 ?v . ?v rdf:type ontology:Q502895 }
tailor
action filter_type
action find
entity tailor
relation patron saint
type common name
['tailor', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:tailor property:patron_saint ?v . ?v rdf:type ontology:common_name }
[]
common name
Q179718 Q43982
SYSTEM
Catherine of Alexandria, Bartholomew the Apostle
Q179718 Q43982
(Q242468,P417,c(Q502895))
action filter_type
action find
entity Q242468
relation P417
type Q502895
The names of the patron saint of tailor are Saint [ANSWERS]
['Q242468', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q242468 property:P417 ?v . ?v rdf:type ontology:Q502895 }
Catherine of Alexandria Bartholomew the Apostle
The names of the patron saint of tailor are Saint Catherine of Alexandria and Bartholomew the Apostle
Catherine of Alexandria Bartholomew the Apostle
action filter_type
action find
entity tailor
relation patron saint
type common name
['tailor', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:tailor property:patron_saint ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2322732
Q502895
USER
And also tell me about St. Peter and Paul Church?
(Q2322732,P417,c(Q502895))
action filter_type
action find
entity Q2322732
relation P417
type Q502895
['Q2322732', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q2322732 property:P417 ?w . ?w rdf:type ontology:Q502895 }
St. Peter and Paul Church
action filter_type
action find
entity St. Peter and Paul Church
relation patron saint
type common name
['St. Peter and Paul Church', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:St._Peter_and_Paul_Church property:patron_saint ?w . ?w rdf:type ontology:common_name }
[]
common name
Q9200 Q33923
SYSTEM
Paul, Peter
Q9200 Q33923
(Q2322732,P417,c(Q502895))
action filter_type
action find
entity Q2322732
relation P417
type Q502895
[ANSWERS]
['Q2322732', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q2322732 property:P417 ?w . ?w rdf:type ontology:Q502895 }
Paul Peter
Paul Peter
action filter_type
action find
entity St. Peter and Paul Church
relation patron saint
type common name
['St. Peter and Paul Church', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:St._Peter_and_Paul_Church property:patron_saint ?w . ?w rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q33923 Q1036232
P1038
Q502895
USER
How many people are the relatives of Peter or Gábor Hidvégi ?
(Q33923,P1038,c(Q502895)) (Q1036232,P1038,c(Q502895))
action count
action union
action filter_type
action find
entity Q33923
relation P1038
type Q502895
action filter_type
action find
entity Q1036232
relation P1038
type Q502895
['Q33923', 'P1038', {'concept': 'Q502895'}] ['Q1036232', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { ?p property:P1038 ?f . VALUES ( ?p ) { ( resource:Q33923 ) ( resource:Q1036232 ) } }
Peter Gábor Hidvégi
action count
action union
action filter_type
action find
entity Peter
relation relative
type common name
action filter_type
action find
entity Gábor Hidvégi
relation relative
type common name
['Peter', 'relative', {'concept': 'common name'}] ['Gábor Hidvégi', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { ?p property:relative ?f . VALUES ( ?p ) { ( resource:Peter ) ( resource:Gábor_Hidvégi ) } }
[]
common name
SYSTEM
2
Q23581940 Q1036234
(Q33923,P1038,c(Q502895)) (Q1036232,P1038,c(Q502895))
action count
action union
action filter_type
action find
entity Q33923
relation P1038
type Q502895
action filter_type
action find
entity Q1036232
relation P1038
type Q502895
[ANSWER]
['Q33923', 'P1038', {'concept': 'Q502895'}] ['Q1036232', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { ?p property:P1038 ?f . VALUES ( ?p ) { ( resource:Q33923 ) ( resource:Q1036232 ) } }
Saint Peter's mother-in-law Vid Hidvégi
2
action count
action union
action filter_type
action find
entity Peter
relation relative
type common name
action filter_type
action find
entity Gábor Hidvégi
relation relative
type common name
['Peter', 'relative', {'concept': 'common name'}] ['Gábor Hidvégi', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { ?p property:relative ?f . VALUES ( ?p ) { ( resource:Peter ) ( resource:Gábor_Hidvégi ) } }
[]