Simple Question (Direct)
Simple Question
Q1383970
P136
Q151885
USER
What can be considered as category for Giorgos Mazonakis ?
(Q1383970,P136,c(Q151885))
action filter_type
action find
entity Q1383970
relation P136
type Q151885
['Q1383970', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q151885 . resource:Q1383970 property:P136 ?v }
Giorgos Mazonakis
action filter_type
action find
entity Giorgos Mazonakis
relation genre
type concept
['Giorgos Mazonakis', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:concept . resource:Giorgos_Mazonakis property:genre ?v }
[]
concept
Q37073
SYSTEM
pop music
Q37073
(Q1383970,P136,c(Q151885))
action filter_type
action find
entity Q1383970
relation P136
type Q151885
[ANSWER] can be considered as category for Giorgos Mazonakis
['Q1383970', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q151885 . resource:Q1383970 property:P136 ?v }
pop music
Pop music can be considered as category for Giorgos Mazonakis
pop music
action filter_type
action find
entity Giorgos Mazonakis
relation genre
type concept
['Giorgos Mazonakis', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:concept . resource:Giorgos_Mazonakis property:genre ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1383970
P106
Q12737077
USER
Which occupation has Giorgos Mazonakis as his/her 's career ?
(Q1383970,P106,c(Q12737077))
action filter_type
action find
entity Q1383970
relation P106
type Q12737077
['Q1383970', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1383970 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Giorgos Mazonakis
action filter_type
action find
entity Giorgos Mazonakis
relation occupation
type occupation
['Giorgos Mazonakis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Giorgos_Mazonakis property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q177220
SYSTEM
singer
Q177220
(Q1383970,P106,c(Q12737077))
action filter_type
action find
entity Q1383970
relation P106
type Q12737077
[ANSWER] has Giorgos Mazonakis as his/her 's career
['Q1383970', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q1383970 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
singer
Singer has Giorgos Mazonakis as his/her 's career
singer
action filter_type
action find
entity Giorgos Mazonakis
relation occupation
type occupation
['Giorgos Mazonakis', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Giorgos_Mazonakis property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3052688
Q12737077
USER
And how about Emmanuel Dyen?
(Q3052688,P106,c(Q12737077))
action filter_type
action find
entity Q3052688
relation P106
type Q12737077
['Q3052688', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q3052688 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Emmanuel Dyen
action filter_type
action find
entity Emmanuel Dyen
relation occupation
type occupation
['Emmanuel Dyen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Emmanuel_Dyen property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q13382487 Q12334852
SYSTEM
windsurfer, yacht racer
Q13382487 Q12334852
(Q3052688,P106,c(Q12737077))
action filter_type
action find
entity Q3052688
relation P106
type Q12737077
[ANSWERS]
['Q3052688', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q3052688 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
windsurfer yacht racer
windsurfer yacht racer
action filter_type
action find
entity Emmanuel Dyen
relation occupation
type occupation
['Emmanuel Dyen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Emmanuel_Dyen property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1028181
P180
Q12737077 Q18783400 Q2342494
USER
Which occupations are demonstrated in around the same number of genres of sculpture and collectables as painter ?
(c(Q18783400)|c(Q2342494),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 Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1028181
relation P180
type Q18783400
type Q2342494
[[{'concept': 'Q18783400'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?p WHERE { { ?e property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q2342494 } UNION { ?p rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q18783400 . ?e property:P180 ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:P180 resource:Q1028181 . { { ?w rdf:type ontology:Q18783400 } UNION { ?w rdf:type ontology:Q2342494 } } } } . FILTER ( ?m = ?u ) }
painter
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 collectable
action count
action filter_multi_types
action find_reverse
entity painter
relation depicts
type genre of sculpture
type collectable
[[{'concept': 'genre of sculpture'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?p WHERE { { ?e property:depicts ?p . ?p rdf:type ontology:occupation . ?e rdf:type ontology:collectable } UNION { ?p rdf:type ontology:occupation . ?e rdf:type ontology:genre_of_sculpture . ?e property:depicts ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:depicts resource:painter . { { ?w rdf:type ontology:genre_of_sculpture } UNION { ?w rdf:type ontology:collectable } } } } . FILTER ( ?m = ?u ) }
[]
occupation genre of sculpture collectable
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 Q2079936 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 Q185196 Q486748 Q328325 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 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 Q2730732 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q5716684 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(Q2342494),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 Q2342494
action count
action filter_multi_types
action find_reverse
entity Q1028181
relation P180
type Q18783400
type Q2342494
[ANSWERS] are demonstrated in around the same number of genres of sculpture and collectables as painter
[[{'concept': 'Q18783400'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?p WHERE { { ?e property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q2342494 } UNION { ?p rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q18783400 . ?e property:P180 ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:P180 resource:Q1028181 . { { ?w rdf:type ontology:Q18783400 } UNION { ?w rdf:type ontology:Q2342494 } } } } . FILTER ( ?m = ?u ) }
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 king of marksmen 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 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 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 equestrian courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner dancer 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 around the same number of genres of sculpture and collectables as painter
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 collectable
action count
action filter_multi_types
action find_reverse
entity painter
relation depicts
type genre of sculpture
type collectable
[[{'concept': 'genre of sculpture'}, {'concept': 'collectable'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?m ) ?p WHERE { { ?e property:depicts ?p . ?p rdf:type ontology:occupation . ?e rdf:type ontology:collectable } UNION { ?p rdf:type ontology:occupation . ?e rdf:type ontology:genre_of_sculpture . ?e property:depicts ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w property:depicts resource:painter . { { ?w rdf:type ontology:genre_of_sculpture } UNION { ?w rdf:type ontology:collectable } } } } . FILTER ( ?m = ?u ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q182436
P921
Q191067
USER
Which article was mainly based on that occupation ?
(c(Q191067),P921,Q182436)
action filter_type
action find_reverse
entity Q182436
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q182436']
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q182436 . ?q rdf:type ontology:Q191067 }
librarian
action filter_type
action find_reverse
entity librarian
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'librarian']
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:librarian . ?q rdf:type ontology:article }
[]
article
Clarification for simple ques.
Q186360
SYSTEM
Did you mean nurse ?
Q186360 Q242468 Q182436
(c(Q191067),P921,Q186360) (c(Q191067),P921,Q242468) (c(Q191067),P921,Q182436)
[ANSWER]
[{'concept': 'Q191067'}, 'P921', 'Q186360'] [{'concept': 'Q191067'}, 'P921', 'Q242468'] [{'concept': 'Q191067'}, 'P921', 'Q182436']
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q182436 . ?q rdf:type ontology:Q191067 }
nurse tailor librarian
Did you mean nurse ?
nurse
[{'concept': 'article'}, 'main subject', 'nurse'] [{'concept': 'article'}, 'main subject', 'tailor'] [{'concept': 'article'}, 'main subject', 'librarian']
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:librarian . ?q rdf:type ontology:article }
[]
Simple Question (Coreferenced)
USER
No, I meant librarian. Could you tell me the answer for that?
(c(Q191067),P921,Q182436)
Q182436
[{'concept': 'Q191067'}, 'P921', 'Q182436']
[{'concept': 'article'}, 'main subject', 'librarian']
[]
Q27334986
SYSTEM
Librarians as Wikipedians: From Library History to Librarianship and Human Rights
Q27334986
(c(Q191067),P921,Q182436)
action filter_type
action find_reverse
entity Q182436
relation P921
type Q191067
[ANSWER] was mainly based on that occupation
[{'concept': 'Q191067'}, 'P921', 'Q182436']
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q182436 . ?q rdf:type ontology:Q191067 }
Librarians as Wikipedians: From Library History to Librarianship and Human Rights
Librarians as Wikipedians: From Library History to Librarianship and Human Rights was mainly based on that occupation
Librarians as Wikipedians: From Library History to Librarianship and Human Rights
action filter_type
action find_reverse
entity librarian
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'librarian']
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:librarian . ?q rdf:type ontology:article }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q27334986
P921
Q5292 Q12737077
USER
How many encyclopedias and occupations were the main subjects of Librarians as Wikipedians: From Library History to Librarianship and Human Rights 's work ?
(Q27334986,P921,c(Q5292)) (Q27334986,P921,c(Q12737077))
action count
action union
action filter_type
action find
entity Q27334986
relation P921
type Q5292
action filter_type
action find
entity Q27334986
relation P921
type Q12737077
['Q27334986', 'P921', {'concept': 'Q5292'}] ['Q27334986', 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { resource:Q27334986 property:P921 ?t . ?t rdf:type ontology:Q5292 } UNION { resource:Q27334986 property:P921 ?t . ?t rdf:type ontology:Q12737077 } }
Librarians as Wikipedians: From Library History to Librarianship and Human Rights
action count
action union
action filter_type
action find
entity Librarians as Wikipedians: From Library History to Librarianship and Human Rights
relation main subject
type encyclopedia
action filter_type
action find
entity Librarians as Wikipedians: From Library History to Librarianship and Human Rights
relation main subject
type occupation
['Librarians as Wikipedians: From Library History to Librarianship and Human Rights', 'main subject', {'concept': 'encyclopedia'}] ['Librarians as Wikipedians: From Library History to Librarianship and Human Rights', 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { resource:Librarians_as_Wikipedians:_From_Library_History_to_Librarianship_and_Human_Rights property:main_subject ?t . ?t rdf:type ontology:encyclopedia } UNION { resource:Librarians_as_Wikipedians:_From_Library_History_to_Librarianship_and_Human_Rights property:main_subject ?t . ?t rdf:type ontology:occupation } }
[]
encyclopedia occupation
SYSTEM
1 encyclopedias and 1 occupations
Q52 Q182436
(Q27334986,P921,c(Q5292)) (Q27334986,P921,c(Q12737077))
action count
action union
action filter_type
action find
entity Q27334986
relation P921
type Q5292
action filter_type
action find
entity Q27334986
relation P921
type Q12737077
[ANSWER]
['Q27334986', 'P921', {'concept': 'Q5292'}] ['Q27334986', 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { resource:Q27334986 property:P921 ?t . ?t rdf:type ontology:Q5292 } UNION { resource:Q27334986 property:P921 ?t . ?t rdf:type ontology:Q12737077 } }
Wikipedia librarian
1 encyclopedias and 1 occupations
action count
action union
action filter_type
action find
entity Librarians as Wikipedians: From Library History to Librarianship and Human Rights
relation main subject
type encyclopedia
action filter_type
action find
entity Librarians as Wikipedians: From Library History to Librarianship and Human Rights
relation main subject
type occupation
['Librarians as Wikipedians: From Library History to Librarianship and Human Rights', 'main subject', {'concept': 'encyclopedia'}] ['Librarians as Wikipedians: From Library History to Librarianship and Human Rights', 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { { resource:Librarians_as_Wikipedians:_From_Library_History_to_Librarianship_and_Human_Rights property:main_subject ?t . ?t rdf:type ontology:encyclopedia } UNION { resource:Librarians_as_Wikipedians:_From_Library_History_to_Librarianship_and_Human_Rights property:main_subject ?t . ?t rdf:type ontology:occupation } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q182436
P39
Q502895
USER
Which people were appointed for the position of librarian ?
(c(Q502895),P39,Q182436)
action filter_type
action find_reverse
entity Q182436
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q182436']
SELECT DISTINCT ?s WHERE { ?s property:P39 resource:Q182436 . ?s rdf:type ontology:Q502895 }
librarian
action filter_type
action find_reverse
entity librarian
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'librarian']
SELECT DISTINCT ?s WHERE { ?s property:position_held resource:librarian . ?s rdf:type ontology:common_name }
[]
common name
Q17276119 Q26883536 Q5947728
SYSTEM
Daniel C. Tsang, Father Bicaïs, Juan Bautista Cubíe
Q16649380 Q17276119 Q5947728 Q26883536
(c(Q502895),P39,Q182436)
action filter_type
action find_reverse
entity Q182436
relation P39
type Q502895
[ANSWERS] were appointed for the position of librarian
[{'concept': 'Q502895'}, 'P39', 'Q182436']
SELECT DISTINCT ?s WHERE { ?s property:P39 resource:Q182436 . ?s rdf:type ontology:Q502895 }
Harald Heyman Daniel C. Tsang Juan Bautista Cubíe Father Bicaïs
Daniel C. Tsang, Father Bicaïs and Juan Bautista Cubíe were appointed for the position of librarian
Daniel C. Tsang Father Bicaïs Juan Bautista Cubíe
action filter_type
action find_reverse
entity librarian
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'librarian']
SELECT DISTINCT ?s WHERE { ?s property:position_held resource:librarian . ?s rdf:type ontology:common_name }
[]