Simple Question (Direct)
Simple Question
Q2980566
P734
Q82799
USER
Who has the surname Clément Allemand ?
(Q2980566,P734,c(Q82799))
action filter_type
action find
entity Q2980566
relation P734
type Q82799
['Q2980566', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q2980566 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Clément Allemand
action filter_type
action find
entity Clément Allemand
relation family name
type name
['Clément Allemand', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Clément_Allemand property:family_name ?d . ?d rdf:type ontology:name }
[]
name
Q16147554
SYSTEM
Allemand
Q16147554
(Q2980566,P734,c(Q82799))
action filter_type
action find
entity Q2980566
relation P734
type Q82799
[ANSWER] has the surname Clément [ANSWER]
['Q2980566', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q2980566 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Allemand
Allemand has the surname Clément Allemand
Allemand
action filter_type
action find
entity Clément Allemand
relation family name
type name
['Clément Allemand', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Clément_Allemand property:family_name ?d . ?d rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2980566
P39
Q12737077
USER
What was the position for which Clément Allemand was appointed ?
(Q2980566,P39,c(Q12737077))
action filter_type
action find
entity Q2980566
relation P39
type Q12737077
['Q2980566', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2980566 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Clément Allemand
action filter_type
action find
entity Clément Allemand
relation position held
type occupation
['Clément Allemand', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Clément_Allemand property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q21032547
SYSTEM
senator of the French Third Republic
Q21032547
(Q2980566,P39,c(Q12737077))
action filter_type
action find
entity Q2980566
relation P39
type Q12737077
French [ANSWER]
['Q2980566', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2980566 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
senator of the French Third Republic
French senator of the French Third Republic
senator of the French Third Republic
action filter_type
action find
entity Clément Allemand
relation position held
type occupation
['Clément Allemand', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Clément_Allemand property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q249156
Q12737077
USER
And also tell me about Harald Warholm?
(Q249156,P39,c(Q12737077))
action filter_type
action find
entity Q249156
relation P39
type Q12737077
['Q249156', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q249156 property:P39 ?k . ?k rdf:type ontology:Q12737077 }
Harald Warholm
action filter_type
action find
entity Harald Warholm
relation position held
type occupation
['Harald Warholm', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Harald_Warholm property:position_held ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q9045502
SYSTEM
member of the Parliament of Norway
Q9045502
(Q249156,P39,c(Q12737077))
action filter_type
action find
entity Q249156
relation P39
type Q12737077
[ANSWER]
['Q249156', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q249156 property:P39 ?k . ?k rdf:type ontology:Q12737077 }
member of the Parliament of Norway
member of the Parliament of Norway
action filter_type
action find
entity Harald Warholm
relation position held
type occupation
['Harald Warholm', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Harald_Warholm property:position_held ?k . ?k rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1294787
P180
Q12737077 Q18783400 Q1792379
USER
Which occupations are demonstrated in approximately the same number of genres of sculpture or art genres as artisan ?
(c(Q18783400)|c(Q1792379),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q1294787
relation P180
type Q18783400
type Q1792379
[[{'concept': 'Q18783400'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?l WHERE { { ?b property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q18783400 } UNION { ?l rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q1792379 . ?b property:P180 ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:P180 resource:Q1294787 . { { ?p rdf:type ontology:Q1792379 } UNION { ?p rdf:type ontology:Q18783400 } } } } . FILTER ( ?x = ?y ) }
artisan
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity artisan
relation depicts
type genre of sculpture
type art genre
[[{'concept': 'genre of sculpture'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?l WHERE { { ?b property:depicts ?l . ?l rdf:type ontology:occupation . ?b rdf:type ontology:genre_of_sculpture } UNION { ?l rdf:type ontology:occupation . ?b rdf:type ontology:art_genre . ?b property:depicts ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:depicts resource:artisan . { { ?p rdf:type ontology:art_genre } UNION { ?p rdf:type ontology:genre_of_sculpture } } } } . FILTER ( ?x = ?y ) }
[]
occupation genre of sculpture art genre
Q186360 Q242468 Q182436
SYSTEM
nurse, tailor, librarian
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q54128 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q5716684 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q838811 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q639669 Q49757 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q42603 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q18783400)|c(Q1792379),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action count
action filter_multi_types
action find_reverse
entity Q1294787
relation P180
type Q18783400
type Q1792379
[ANSWERS] are demonstrated in approximately the same number of genres of sculpture or art genres as artisan
[[{'concept': 'Q18783400'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?l WHERE { { ?b property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q18783400 } UNION { ?l rdf:type ontology:Q12737077 . ?b rdf:type ontology:Q1792379 . ?b property:P180 ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:P180 resource:Q1294787 . { { ?p rdf:type ontology:Q1792379 } UNION { ?p rdf:type ontology:Q18783400 } } } } . FILTER ( ?x = ?y ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler geographer Archbishop of Canterbury minister receptionist milkman coachman warrior model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective military personnel midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate domestic worker tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner dancer Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador peasant woodcutter lacemaker Snake charming carpenter school teacher officer fisherman musician poet baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier priest artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Nurse, tailor and librarian are demonstrated in approximately the same number of genres of sculpture or art genres as artisan
nurse tailor librarian
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type genre of sculpture
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action count
action filter_multi_types
action find_reverse
entity artisan
relation depicts
type genre of sculpture
type art genre
[[{'concept': 'genre of sculpture'}, {'concept': 'art genre'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) ?l WHERE { { ?b property:depicts ?l . ?l rdf:type ontology:occupation . ?b rdf:type ontology:genre_of_sculpture } UNION { ?l rdf:type ontology:occupation . ?b rdf:type ontology:art_genre . ?b property:depicts ?l } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { ?p property:depicts resource:artisan . { { ?p rdf:type ontology:art_genre } UNION { ?p rdf:type ontology:genre_of_sculpture } } } } . FILTER ( ?x = ?y ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q186360
P417
Q502895
USER
Who are the patron saints of that occupation ?
(Q186360,P417,c(Q502895))
action filter_type
action find
entity Q186360
relation P417
type Q502895
['Q186360', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q186360 property:P417 ?n . ?n rdf:type ontology:Q502895 }
nurse
action filter_type
action find
entity nurse
relation patron saint
type common name
['nurse', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:nurse property:patron_saint ?n . ?n rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q242468
SYSTEM
Did you mean tailor ?
Q186360 Q242468 Q182436
(Q186360,P417,c(Q502895)) (Q242468,P417,c(Q502895)) (Q182436,P417,c(Q502895))
[ANSWER]
['Q186360', 'P417', {'concept': 'Q502895'}] ['Q242468', 'P417', {'concept': 'Q502895'}] ['Q182436', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q186360 property:P417 ?n . ?n rdf:type ontology:Q502895 }
nurse tailor librarian
Did you mean tailor ?
tailor
['nurse', 'patron saint', {'concept': 'common name'}] ['tailor', 'patron saint', {'concept': 'common name'}] ['librarian', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:nurse property:patron_saint ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant nurse. Could you tell me the answer for that?
(Q186360,P417,c(Q502895))
Q186360
['Q186360', 'P417', {'concept': 'Q502895'}]
['nurse', 'patron saint', {'concept': 'common name'}]
[]
Q179718 Q229190 Q332656
SYSTEM
Catherine of Alexandria, Catherine of Siena, Camillus de Lellis
Q332656 Q200895 Q229190 Q137947 Q179718
(Q186360,P417,c(Q502895))
action filter_type
action find
entity Q186360
relation P417
type Q502895
The patron saints of that occupation are [ANSWERS]
['Q186360', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q186360 property:P417 ?n . ?n rdf:type ontology:Q502895 }
Camillus de Lellis Agatha of Sicily Catherine of Siena Alexius of Rome Catherine of Alexandria
The patron saints of that occupation are Catherine of Alexandria, Catherine of Siena and Camillus de Lellis
Catherine of Alexandria Catherine of Siena Camillus de Lellis
action filter_type
action find
entity nurse
relation patron saint
type common name
['nurse', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:nurse property:patron_saint ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q179718 Q229190 Q332656
P21
Q290
USER
Which sexes do Catherine of Alexandria, Catherine of Siena and Camillus de Lellis have ?
(Q179718,P21,c(Q290)) (Q229190,P21,c(Q290)) (Q332656,P21,c(Q290))
action union
action filter_type
action find
entity Q179718
relation P21
type Q290
action filter_type
action find
entity Q229190
relation P21
type Q290
action filter_type
action find
entity Q332656
relation P21
type Q290
['Q179718', 'P21', {'concept': 'Q290'}] ['Q229190', 'P21', {'concept': 'Q290'}] ['Q332656', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?w ) { ( resource:Q229190 ) ( resource:Q179718 ) } . ?w property:P21 ?u }
Catherine of Alexandria Catherine of Siena Camillus de Lellis
action union
action filter_type
action find
entity Catherine of Alexandria
relation gender
type sex
action filter_type
action find
entity Catherine of Siena
relation gender
type sex
action filter_type
action find
entity Camillus de Lellis
relation gender
type sex
['Catherine of Alexandria', 'gender', {'concept': 'sex'}] ['Catherine of Siena', 'gender', {'concept': 'sex'}] ['Camillus de Lellis', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?w ) { ( resource:Catherine_of_Siena ) ( resource:Catherine_of_Alexandria ) } . ?w property:gender ?u }
[]
sex
Q6581072 Q6581072 Q6581097
SYSTEM
male for 3rd, female for 1st, 2nd
Q6581072 Q6581072 Q6581097
(Q179718,P21,c(Q290)) (Q229190,P21,c(Q290)) (Q332656,P21,c(Q290))
action union
action filter_type
action find
entity Q179718
relation P21
type Q290
action filter_type
action find
entity Q229190
relation P21
type Q290
action filter_type
action find
entity Q332656
relation P21
type Q290
[ANSWERS]
['Q179718', 'P21', {'concept': 'Q290'}] ['Q229190', 'P21', {'concept': 'Q290'}] ['Q332656', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?w ) { ( resource:Q229190 ) ( resource:Q179718 ) } . ?w property:P21 ?u }
female female male
Catherine of Alexandria , Catherine of Siena and Camillus de Lellis have been female, female and male
female female male
action union
action filter_type
action find
entity Catherine of Alexandria
relation gender
type sex
action filter_type
action find
entity Catherine of Siena
relation gender
type sex
action filter_type
action find
entity Camillus de Lellis
relation gender
type sex
['Catherine of Alexandria', 'gender', {'concept': 'sex'}] ['Catherine of Siena', 'gender', {'concept': 'sex'}] ['Camillus de Lellis', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?w ) { ( resource:Catherine_of_Siena ) ( resource:Catherine_of_Alexandria ) } . ?w property:gender ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q229190
P1412
Q34770
USER
Which language does Catherine of Siena speak in ?
(Q229190,P1412,c(Q34770))
action filter_type
action find
entity Q229190
relation P1412
type Q34770
['Q229190', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q229190 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
Catherine of Siena
action filter_type
action find
entity Catherine of Siena
relation languages spoken, written or signed
type language
['Catherine of Siena', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Catherine_of_Siena property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q229190,P1412,c(Q34770))
action filter_type
action find
entity Q229190
relation P1412
type Q34770
Catherine of Siena speaks in [ANSWER]
['Q229190', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q229190 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
Italian
Catherine of Siena speaks in Italian
Italian
action filter_type
action find
entity Catherine of Siena
relation languages spoken, written or signed
type language
['Catherine of Siena', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Catherine_of_Siena property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6178155
Q34770
USER
And what about Jennifer Brown?
(Q6178155,P1412,c(Q34770))
action filter_type
action find
entity Q6178155
relation P1412
type Q34770
['Q6178155', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q6178155 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
Jennifer Brown
action filter_type
action find
entity Jennifer Brown
relation languages spoken, written or signed
type language
['Jennifer Brown', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Jennifer_Brown property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q6178155,P1412,c(Q34770))
action filter_type
action find
entity Q6178155
relation P1412
type Q34770
[ANSWER]
['Q6178155', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { resource:Q6178155 property:P1412 ?e . ?e rdf:type ontology:Q34770 }
English
English
action filter_type
action find
entity Jennifer Brown
relation languages spoken, written or signed
type language
['Jennifer Brown', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { resource:Jennifer_Brown property:languages_spoken,_written_or_signed ?e . ?e rdf:type ontology:language }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P282
Q2001982 Q9779 Q34770
USER
How many languages are more number of notations or alphabets the writing system of than that language ?
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q1860
relation P282
type Q2001982
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?r WHERE { { ?r property:P282 ?p . ?r rdf:type ontology:Q34770 . ?p rdf:type ontology:Q2001982 } UNION { ?r property:P282 ?p . ?p rdf:type ontology:Q9779 . ?r rdf:type ontology:Q34770 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { resource:Q1860 property:P282 ?w . { { ?w rdf:type ontology:Q2001982 } UNION { ?w rdf:type ontology:Q9779 } } } } . FILTER ( ?i > ?o ) }
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity English
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?r WHERE { { ?r property:writing_system ?p . ?r rdf:type ontology:language . ?p rdf:type ontology:notation } UNION { ?r property:writing_system ?p . ?p rdf:type ontology:alphabet . ?r rdf:type ontology:language } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { resource:English property:writing_system ?w . { { ?w rdf:type ontology:notation } UNION { ?w rdf:type ontology:alphabet } } } } . FILTER ( ?i > ?o ) }
[]
notation alphabet language
SYSTEM
15
Q182695 Q29572 Q35470 Q13211 Q35499 Q33251 Q21161942 Q1639124 Q2705672 Q36795 Q20972034 Q36790 Q36751 Q36464 Q652
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action count
action greater
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q1860
relation P282
type Q2001982
type Q9779
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?r WHERE { { ?r property:P282 ?p . ?r rdf:type ontology:Q34770 . ?p rdf:type ontology:Q2001982 } UNION { ?r property:P282 ?p . ?p rdf:type ontology:Q9779 . ?r rdf:type ontology:Q34770 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { resource:Q1860 property:P282 ?w . { { ?w rdf:type ontology:Q2001982 } UNION { ?w rdf:type ontology:Q9779 } } } } . FILTER ( ?i > ?o ) }
Late Old Japanese Avestan Elamite language Ruthenian Old Church Slavonic Church Slavonic Serbian written in Cyrillic Slavoserbian Paeonian language Tartessian Classic Greek Sumerian Phrygian language Nivkh language Italian
15
action count
action greater
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity English
relation writing system
type notation
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?i ) ?r WHERE { { ?r property:writing_system ?p . ?r rdf:type ontology:language . ?p rdf:type ontology:notation } UNION { ?r property:writing_system ?p . ?p rdf:type ontology:alphabet . ?r rdf:type ontology:language } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?o ) WHERE { resource:English property:writing_system ?w . { { ?w rdf:type ontology:notation } UNION { ?w rdf:type ontology:alphabet } } } } . FILTER ( ?i > ?o ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1860
P921
Q2342494 Q21114848
USER
How many collectables or magazine genres were primarily based on English ?
(c(Q2342494),P921,Q1860) (c(Q21114848),P921,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q1860
relation P921
type Q21114848
[{'concept': 'Q2342494'}, 'P921', 'Q1860'] [{'concept': 'Q21114848'}, 'P921', 'Q1860']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ?t . VALUES ( ?t ) { ( ontology:Q21114848 ) ( ontology:Q2342494 ) } }
English
action count
action union
action filter_type
action find_reverse
entity English
relation main subject
type collectable
action filter_type
action find_reverse
entity English
relation main subject
type magazine genre
[{'concept': 'collectable'}, 'main subject', 'English'] [{'concept': 'magazine genre'}, 'main subject', 'English']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ?t . VALUES ( ?t ) { ( ontology:magazine_genre ) ( ontology:collectable ) } }
[]
collectable magazine genre
SYSTEM
2
Q7050706 Q1210346
(c(Q2342494),P921,Q1860) (c(Q21114848),P921,Q1860)
action count
action union
action filter_type
action find_reverse
entity Q1860
relation P921
type Q2342494
action filter_type
action find_reverse
entity Q1860
relation P921
type Q21114848
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q1860'] [{'concept': 'Q21114848'}, 'P921', 'Q1860']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ?t . VALUES ( ?t ) { ( ontology:Q21114848 ) ( ontology:Q2342494 ) } }
Nordic Journal of English Studies A Dictionary of the English Language
2
action count
action union
action filter_type
action find_reverse
entity English
relation main subject
type collectable
action filter_type
action find_reverse
entity English
relation main subject
type magazine genre
[{'concept': 'collectable'}, 'main subject', 'English'] [{'concept': 'magazine genre'}, 'main subject', 'English']
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { ?g rdf:type ?t . VALUES ( ?t ) { ( ontology:magazine_genre ) ( ontology:collectable ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q1792379 Q2342494
USER
Which occupations are expressed in max number of art genres and collectables ?
(c(Q1792379)|c(Q2342494),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
[[{'concept': 'Q1792379'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?l WHERE { { ?y property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q1792379 } UNION { ?y property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q2342494 } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) ?b WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1792379 ) ( ontology:Q2342494 ) } } GROUP BY ?b } . FILTER ( ?a = ?z ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
[[{'concept': 'art genre'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?l WHERE { { ?y property:depicts ?l . ?l rdf:type ontology:occupation . ?y rdf:type ontology:art_genre } UNION { ?y property:depicts ?l . ?l rdf:type ontology:occupation . ?y rdf:type ontology:collectable } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) ?b WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:art_genre ) ( ontology:collectable ) } } GROUP BY ?b } . FILTER ( ?a = ?z ) }
[]
occupation art genre collectable
Q170779 Q4991371 Q11900058
SYSTEM
Kassandra, soldier, explorer
Q2079936 Q11900058 Q843281 Q4991371 Q2730732 Q170779
(c(Q1792379)|c(Q2342494),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q2342494
[ANSWERS] are expressed in max number of art genres and collectables
[[{'concept': 'Q1792379'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?l WHERE { { ?y property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q1792379 } UNION { ?y property:P180 ?l . ?l rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q2342494 } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) ?b WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:Q1792379 ) ( ontology:Q2342494 ) } } GROUP BY ?b } . FILTER ( ?a = ?z ) }
king of marksmen explorer hobo soldier equestrian Kassandra
Kassandra, soldier and explorer are expressed in max number of art genres and collectables
Kassandra soldier explorer
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type collectable
[[{'concept': 'art genre'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) ?l WHERE { { ?y property:depicts ?l . ?l rdf:type ontology:occupation . ?y rdf:type ontology:art_genre } UNION { ?y property:depicts ?l . ?l rdf:type ontology:occupation . ?y rdf:type ontology:collectable } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?a ) ?b WHERE { ?j rdf:type ?h . VALUES ( ?h ) { ( ontology:art_genre ) ( ontology:collectable ) } } GROUP BY ?b } . FILTER ( ?a = ?z ) }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q13955118
Q5962346
USER
And how about earthworks?
(Q13955118,P361,c(Q5962346))
action filter_type
action find
entity Q13955118
relation P361
type Q5962346
['Q13955118', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?h WHERE { resource:Q13955118 property:P361 ?h . ?h rdf:type ontology:Q5962346 }
earthworks
action filter_type
action find
entity earthworks
relation part of
type classification scheme
['earthworks', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?h WHERE { resource:earthworks property:part_of ?h . ?h rdf:type ontology:classification_scheme }
[]
classification scheme
Q349479
SYSTEM
building industry
Q349479
(Q13955118,P361,c(Q5962346))
action filter_type
action find
entity Q13955118
relation P361
type Q5962346
[ANSWER]
['Q13955118', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?h WHERE { resource:Q13955118 property:P361 ?h . ?h rdf:type ontology:Q5962346 }
building industry
building industry
action filter_type
action find
entity earthworks
relation part of
type classification scheme
['earthworks', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?h WHERE { resource:earthworks property:part_of ?h . ?h rdf:type ontology:classification_scheme }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q349479 Q1156728
P361
Q2221906
USER
Is domestic roof construction a part of that classification scheme ?
(Q1156728,P361,Q349479)
action is_in
entity Q349479
action find
entity Q1156728
relation P361
['Q1156728', 'P361', 'Q349479']
ASK WHERE { resource:Q1156728 property:P361 resource:Q349479 }
building industry domestic roof construction
action is_in
entity building industry
action find
entity domestic roof construction
relation part of
['domestic roof construction', 'part of', 'building industry']
ASK WHERE { resource:domestic_roof_construction property:part_of resource:building_industry }
[]
geographic location
SYSTEM
YES
(Q1156728,P361,Q349479)
action is_in
entity Q349479
action find
entity Q1156728
relation P361
[ANSWER]
['Q1156728', 'P361', 'Q349479']
ASK WHERE { resource:Q1156728 property:P361 resource:Q349479 }
Yes
action is_in
entity building industry
action find
entity domestic roof construction
relation part of
['domestic roof construction', 'part of', 'building industry']
ASK WHERE { resource:domestic_roof_construction property:part_of resource:building_industry }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q229190 Q12668361 Q220
P20
Q56061
USER
Did Catherine of Siena die in Papiškiai and Rome ?
(Q229190,P20,Q12668361) (Q229190,P20,Q220)
action is_in
entity Q229190
action intersection
action find_reverse
entity Q12668361
relation P20
action find_reverse
entity Q220
relation P20
['Q229190', 'P20', 'Q12668361'] ['Q229190', 'P20', 'Q220']
ASK WHERE { resource:Q229190 property:P20 resource:Q12668361 . resource:Q229190 property:P20 resource:Q220 }
Catherine of Siena Papiškiai Rome
action is_in
entity Catherine of Siena
action intersection
action find_reverse
entity Papiškiai
relation place of death
action find_reverse
entity Rome
relation place of death
['Catherine of Siena', 'place of death', 'Papiškiai'] ['Catherine of Siena', 'place of death', 'Rome']
ASK WHERE { resource:Catherine_of_Siena property:place_of_death resource:Papiškiai . resource:Catherine_of_Siena property:place_of_death resource:Rome }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q229190,P20,Q12668361) (Q229190,P20,Q220)
action is_in
entity Q229190
action intersection
action find_reverse
entity Q12668361
relation P20
action find_reverse
entity Q220
relation P20
[ANSWER]
['Q229190', 'P20', 'Q12668361'] ['Q229190', 'P20', 'Q220']
ASK WHERE { resource:Q229190 property:P20 resource:Q12668361 . resource:Q229190 property:P20 resource:Q220 }
NO and YES respectively
action is_in
entity Catherine of Siena
action intersection
action find_reverse
entity Papiškiai
relation place of death
action find_reverse
entity Rome
relation place of death
['Catherine of Siena', 'place of death', 'Papiškiai'] ['Catherine of Siena', 'place of death', 'Rome']
ASK WHERE { resource:Catherine_of_Siena property:place_of_death resource:Papiškiai . resource:Catherine_of_Siena property:place_of_death resource:Rome }
[]