Simple Question (Direct)
Simple Question
Q17497066
P641
Q349
USER
Which sport was Sam Dower a part of ?
(Q17497066,P641,c(Q349))
action filter_type
action find
entity Q17497066
relation P641
type Q349
['Q17497066', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q17497066 property:P641 ?r . ?r rdf:type ontology:Q349 }
Sam Dower
action filter_type
action find
entity Sam Dower
relation sport
type sport
['Sam Dower', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Sam_Dower property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q17497066,P641,c(Q349))
action filter_type
action find
entity Q17497066
relation P641
type Q349
Which sport was Sam Dower a part of
['Q17497066', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q17497066 property:P641 ?r . ?r rdf:type ontology:Q349 }
basketball
Which sport was Sam Dower a part of
basketball
action filter_type
action find
entity Sam Dower
relation sport
type sport
['Sam Dower', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Sam_Dower property:sport ?r . ?r rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17497066
P54
Q12973014
USER
What is Sam Dower a member of ?
(Q17497066,P54,c(Q12973014))
action filter_type
action find
entity Q17497066
relation P54
type Q12973014
['Q17497066', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?g WHERE { resource:Q17497066 property:P54 ?g . ?g rdf:type ontology:Q12973014 }
Sam Dower
action filter_type
action find
entity Sam Dower
relation member of sports team
type sports team
['Sam Dower', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?g WHERE { resource:Sam_Dower property:member_of_sports_team ?g . ?g rdf:type ontology:sports_team }
[]
sports team
Q3496218
SYSTEM
Stade Olympique Maritime Boulonnais
Q3496218
(Q17497066,P54,c(Q12973014))
action filter_type
action find
entity Q17497066
relation P54
type Q12973014
Sam Dower a member of is the [ANSWER]
['Q17497066', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?g WHERE { resource:Q17497066 property:P54 ?g . ?g rdf:type ontology:Q12973014 }
Stade Olympique Maritime Boulonnais
Sam Dower a member of is the Stade Olympique Maritime Boulonnais
Stade Olympique Maritime Boulonnais
action filter_type
action find
entity Sam Dower
relation member of sports team
type sports team
['Sam Dower', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?g WHERE { resource:Sam_Dower property:member_of_sports_team ?g . ?g rdf:type ontology:sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q17497066
P106
Q12737077
USER
What does that person do for a living ?
(Q3496218,P106,c(Q12737077))
action filter_type
action find
entity Q17497066
relation P106
type Q12737077
['Q3496218', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q17497066 property:P106 ?l }
Sam Dower
action filter_type
action find
entity Sam Dower
relation occupation
type occupation
['Stade Olympique Maritime Boulonnais', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:Sam_Dower property:occupation ?l }
[]
occupation
Q3665646
SYSTEM
basketball player
Q3665646
(Q3496218,P106,c(Q12737077))
action filter_type
action find
entity Q17497066
relation P106
type Q12737077
That person does a [ANSWER] for a living
['Q3496218', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q12737077 . resource:Q17497066 property:P106 ?l }
basketball player
That person does a basketball player for a living
basketball player
action filter_type
action find
entity Sam Dower
relation occupation
type occupation
['Stade Olympique Maritime Boulonnais', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:occupation . resource:Sam_Dower property:occupation ?l }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1923
Q12973014 Q15991303 Q18608583
USER
How many sports teams participated in around 21 association football leagues or recurring sporting events ?
(c(Q15991303)|c(Q18608583),P1923,c(Q12973014))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1923
type Q12973014
type Q15991303
action find_reverse_tuple_counts
relation P1923
type Q12973014
type Q18608583
value 21
[[{'concept': 'Q15991303'}, {'concept': 'Q18608583'}], 'P1923', {'concept': 'Q12973014'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { FILTER ( ?p = 21 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) ?s WHERE { { ?s rdf:type ontology:Q12973014 . ?c rdf:type ontology:Q15991303 . ?c property:P1923 ?s } UNION { ?c property:P1923 ?s . ?s rdf:type ontology:Q12973014 . ?c rdf:type ontology:Q18608583 } } GROUP BY ?s } }
action count
action approx
action union
action find_reverse_tuple_counts
relation participating teams
type sports team
type association football league
action find_reverse_tuple_counts
relation participating teams
type sports team
type recurring sporting event
value 21
[[{'concept': 'association football league'}, {'concept': 'recurring sporting event'}], 'participating teams', {'concept': 'sports team'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { FILTER ( ?p = 21 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) ?s WHERE { { ?s rdf:type ontology:sports_team . ?c rdf:type ontology:association_football_league . ?c property:participating_teams ?s } UNION { ?c property:participating_teams ?s . ?s rdf:type ontology:sports_team . ?c rdf:type ontology:recurring_sporting_event } } GROUP BY ?s } }
[]
sports team association football league recurring sporting event
SYSTEM
39
Q27146481 Q27146483 Q27146485 Q27146486 Q16295654 Q27146793 Q26722120 Q27146296 Q26722119 Q384639 Q1090946 Q1107477 Q2177038 Q27146507 Q27146508 Q966632 Q27146320 Q27146516 Q1395532 Q154053 Q1723502 Q1107146 Q19336122 Q15786 Q1265173 Q27146526 Q27146520 Q27146539 Q372930 Q27146531 Q19831195 Q19826622 Q27146496 Q27146494 Q27146310 Q27146313 Q27146314 Q15293849 Q491924
(c(Q15991303)|c(Q18608583),P1923,c(Q12973014))
action count
action approx
action union
action find_reverse_tuple_counts
relation P1923
type Q12973014
type Q15991303
action find_reverse_tuple_counts
relation P1923
type Q12973014
type Q18608583
value 21
[ANSWER]
[[{'concept': 'Q15991303'}, {'concept': 'Q18608583'}], 'P1923', {'concept': 'Q12973014'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { FILTER ( ?p = 21 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) ?s WHERE { { ?s rdf:type ontology:Q12973014 . ?c rdf:type ontology:Q15991303 . ?c property:P1923 ?s } UNION { ?c property:P1923 ?s . ?s rdf:type ontology:Q12973014 . ?c rdf:type ontology:Q18608583 } } GROUP BY ?s } }
Hungary national badminton team Iceland national badminton team Israel national badminton team Italy national badminton team Australia national badminton team Sri Lanka national badminton team Bulgaria national badminton team Austria national badminton team Ireland national badminton team China national badminton team Japan national badminton team Malaysia national badminton team Russia national badminton team Norway national badminton team Poland national badminton team Taiwan national badminton team Finland national badminton team Slovakia national badminton team Thailand national badminton team Eintracht Braunschweig Canada national badminton team Indonesia national badminton team Wanty-Groupe Gobert 2015 1. FC Nürnberg India national badminton team Wales national badminton team Spain national badminton team Czechoslovakia national badminton team United States national badminton team USSR national badminton team Roompot Oranje Peloton 2015 Ukraine national badminton team Luxembourg national badminton team Lithuania national badminton team Cyprus national badminton team Czech national badminton team Estonia national badminton team Hong Kong national badminton team South Korea national badminton team
39
action count
action approx
action union
action find_reverse_tuple_counts
relation participating teams
type sports team
type association football league
action find_reverse_tuple_counts
relation participating teams
type sports team
type recurring sporting event
value 21
[[{'concept': 'association football league'}, {'concept': 'recurring sporting event'}], 'participating teams', {'concept': 'sports team'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { FILTER ( ?p = 21 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) ?s WHERE { { ?s rdf:type ontology:sports_team . ?c rdf:type ontology:association_football_league . ?c property:participating_teams ?s } UNION { ?c property:participating_teams ?s . ?s rdf:type ontology:sports_team . ?c rdf:type ontology:recurring_sporting_event } } GROUP BY ?s } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q386724 Q3516658
USER
Which occupations are depicted in min number of works and heraldic symbols ?
(c(Q386724)|c(Q3516658),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
[[{'concept': 'Q386724'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?j ) { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?d ) WHERE { ?h rdf:type ?s . VALUES ( ?s ) { ( ontology:Q386724 ) ( ontology:Q3516658 ) } } GROUP BY ?m } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?w ) WHERE { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:Q386724 ) ( ontology:Q3516658 ) } } GROUP BY ?t } . FILTER ( ?w = ?j ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
[[{'concept': 'work'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?j ) { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?d ) WHERE { ?h rdf:type ?s . VALUES ( ?s ) { ( ontology:work ) ( ontology:heraldic_symbol ) } } GROUP BY ?m } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?w ) WHERE { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:work ) ( ontology:heraldic_symbol ) } } GROUP BY ?t } . FILTER ( ?w = ?j ) }
[]
occupation work heraldic symbol
Q131512 Q186360 Q242468
SYSTEM
farmer, nurse, tailor
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 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 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 Q4991371 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 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 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q386724)|c(Q3516658),P180,c(Q12737077))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3516658
[ANSWERS] are depicted in min number of works and heraldic symbols
[[{'concept': 'Q386724'}, {'concept': 'Q3516658'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?j ) { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?d ) WHERE { ?h rdf:type ?s . VALUES ( ?s ) { ( ontology:Q386724 ) ( ontology:Q3516658 ) } } GROUP BY ?m } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?w ) WHERE { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:Q386724 ) ( ontology:Q3516658 ) } } GROUP BY ?t } . FILTER ( ?w = ?j ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer 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 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 soldier 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 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 artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
Farmer, nurse and tailor are depicted in min number of works and heraldic symbols
farmer nurse tailor
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action find_reverse_tuple_counts
relation depicts
type occupation
type heraldic symbol
[[{'concept': 'work'}, {'concept': 'heraldic symbol'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?j ) { SELECT DISTINCT ?m ( COUNT ( ?h ) AS ?d ) WHERE { ?h rdf:type ?s . VALUES ( ?s ) { ( ontology:work ) ( ontology:heraldic_symbol ) } } GROUP BY ?m } } . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?w ) WHERE { ?a rdf:type ?r . VALUES ( ?r ) { ( ontology:work ) ( ontology:heraldic_symbol ) } } GROUP BY ?t } . FILTER ( ?w = ?j ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q131512 Q186360 Q242468
P417
Q502895
USER
What are the names of person who are the patron saints of farmer, nurse and tailor ?
(Q131512,P417,c(Q502895)) (Q186360,P417,c(Q502895)) (Q242468,P417,c(Q502895))
action union
action filter_type
action find
entity Q131512
relation P417
type Q502895
action filter_type
action find
entity Q186360
relation P417
type Q502895
action filter_type
action find
entity Q242468
relation P417
type Q502895
['Q131512', 'P417', {'concept': 'Q502895'}] ['Q186360', 'P417', {'concept': 'Q502895'}] ['Q242468', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { resource:Q131512 property:P417 ?u . ?u rdf:type ontology:Q502895 } UNION { ?u rdf:type ontology:Q502895 . resource:Q186360 property:P417 ?u } }
farmer nurse tailor
action union
action filter_type
action find
entity farmer
relation patron saint
type common name
action filter_type
action find
entity nurse
relation patron saint
type common name
action filter_type
action find
entity tailor
relation patron saint
type common name
['farmer', 'patron saint', {'concept': 'common name'}] ['nurse', 'patron saint', {'concept': 'common name'}] ['tailor', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { resource:farmer property:patron_saint ?u . ?u rdf:type ontology:common_name } UNION { ?u rdf:type ontology:common_name . resource:nurse property:patron_saint ?u } }
[]
common name
Q166876 Q229190 Q44265
SYSTEM
Isidore of Seville, Catherine of Siena, Benedict of Nursia
Q119289 Q166876 Q151967 Q44265 Q43982 Q332656 Q200895 Q229190 Q137947 Q179718 Q179718 Q43982
(Q131512,P417,c(Q502895)) (Q186360,P417,c(Q502895)) (Q242468,P417,c(Q502895))
action union
action filter_type
action find
entity Q131512
relation P417
type Q502895
action filter_type
action find
entity Q186360
relation P417
type Q502895
action filter_type
action find
entity Q242468
relation P417
type Q502895
The names of person are the patron saints of farmer , nurse and tailor are the [ANSWERS]
['Q131512', 'P417', {'concept': 'Q502895'}] ['Q186360', 'P417', {'concept': 'Q502895'}] ['Q242468', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { { resource:Q131512 property:P417 ?u . ?u rdf:type ontology:Q502895 } UNION { ?u rdf:type ontology:Q502895 . resource:Q186360 property:P417 ?u } }
Leonard of Port Maurice Isidore of Seville Saint Blaise Benedict of Nursia Bartholomew the Apostle Camillus de Lellis Agatha of Sicily Catherine of Siena Alexius of Rome Catherine of Alexandria Catherine of Alexandria Bartholomew the Apostle
The names of person are the patron saints of farmer , nurse and tailor are the Isidore of Seville, Catherine of Siena and Benedict of Nursia
Isidore of Seville Catherine of Siena Benedict of Nursia
action union
action filter_type
action find
entity farmer
relation patron saint
type common name
action filter_type
action find
entity nurse
relation patron saint
type common name
action filter_type
action find
entity tailor
relation patron saint
type common name
['farmer', 'patron saint', {'concept': 'common name'}] ['nurse', 'patron saint', {'concept': 'common name'}] ['tailor', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { { resource:farmer property:patron_saint ?u . ?u rdf:type ontology:common_name } UNION { ?u rdf:type ontology:common_name . resource:nurse property:patron_saint ?u } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q166876 Q229190 Q44265
P841
Q186081
USER
Which time intervals are the feast days of Isidore of Seville, Catherine of Siena and Benedict of Nursia ?
(Q166876,P841,c(Q186081)) (Q229190,P841,c(Q186081)) (Q44265,P841,c(Q186081))
action union
action filter_type
action find
entity Q166876
relation P841
type Q186081
action filter_type
action find
entity Q229190
relation P841
type Q186081
action filter_type
action find
entity Q44265
relation P841
type Q186081
['Q166876', 'P841', {'concept': 'Q186081'}] ['Q229190', 'P841', {'concept': 'Q186081'}] ['Q44265', 'P841', {'concept': 'Q186081'}]
SELECT DISTINCT ?w WHERE { { resource:Q166876 property:P841 ?w . ?w rdf:type ontology:Q186081 } UNION { ?w rdf:type ontology:Q186081 . resource:Q229190 property:P841 ?w } }
Isidore of Seville Catherine of Siena Benedict of Nursia
action union
action filter_type
action find
entity Isidore of Seville
relation feast day
type time interval
action filter_type
action find
entity Catherine of Siena
relation feast day
type time interval
action filter_type
action find
entity Benedict of Nursia
relation feast day
type time interval
['Isidore of Seville', 'feast day', {'concept': 'time interval'}] ['Catherine of Siena', 'feast day', {'concept': 'time interval'}] ['Benedict of Nursia', 'feast day', {'concept': 'time interval'}]
SELECT DISTINCT ?w WHERE { { resource:Isidore_of_Seville property:feast_day ?w . ?w rdf:type ontology:time_interval } UNION { ?w rdf:type ontology:time_interval . resource:Catherine_of_Siena property:feast_day ?w } }
[]
time interval
Q2508 Q2535 Q2701
SYSTEM
April 4, April 29, July 11
Q2508 Q2535 Q2701
(Q166876,P841,c(Q186081)) (Q229190,P841,c(Q186081)) (Q44265,P841,c(Q186081))
action union
action filter_type
action find
entity Q166876
relation P841
type Q186081
action filter_type
action find
entity Q229190
relation P841
type Q186081
action filter_type
action find
entity Q44265
relation P841
type Q186081
[ANSWERS] are the feast days of Isidore of Seville, Catherine of Siena and Benedict of Nursia
['Q166876', 'P841', {'concept': 'Q186081'}] ['Q229190', 'P841', {'concept': 'Q186081'}] ['Q44265', 'P841', {'concept': 'Q186081'}]
SELECT DISTINCT ?w WHERE { { resource:Q166876 property:P841 ?w . ?w rdf:type ontology:Q186081 } UNION { ?w rdf:type ontology:Q186081 . resource:Q229190 property:P841 ?w } }
April 4 April 29 July 11
April 4, April 29 and July 11 are the feast days of Isidore of Seville, Catherine of Siena and Benedict of Nursia
April 4 April 29 July 11
action union
action filter_type
action find
entity Isidore of Seville
relation feast day
type time interval
action filter_type
action find
entity Catherine of Siena
relation feast day
type time interval
action filter_type
action find
entity Benedict of Nursia
relation feast day
type time interval
['Isidore of Seville', 'feast day', {'concept': 'time interval'}] ['Catherine of Siena', 'feast day', {'concept': 'time interval'}] ['Benedict of Nursia', 'feast day', {'concept': 'time interval'}]
SELECT DISTINCT ?w WHERE { { resource:Isidore_of_Seville property:feast_day ?w . ?w rdf:type ontology:time_interval } UNION { ?w rdf:type ontology:time_interval . resource:Catherine_of_Siena property:feast_day ?w } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2508 Q2535 Q2701
P361
Q5151
USER
Which months are April 4, April 29 and July 11 a portion of ?
(Q2508,P361,c(Q5151)) (Q2535,P361,c(Q5151)) (Q2701,P361,c(Q5151))
action union
action filter_type
action find
entity Q2508
relation P361
type Q5151
action filter_type
action find
entity Q2535
relation P361
type Q5151
action filter_type
action find
entity Q2701
relation P361
type Q5151
['Q2508', 'P361', {'concept': 'Q5151'}] ['Q2535', 'P361', {'concept': 'Q5151'}] ['Q2701', 'P361', {'concept': 'Q5151'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?j ) { ( resource:Q2535 ) ( resource:Q2508 ) } . ?j property:P361 ?t }
April 4 April 29 July 11
action union
action filter_type
action find
entity April 4
relation part of
type month
action filter_type
action find
entity April 29
relation part of
type month
action filter_type
action find
entity July 11
relation part of
type month
['April 4', 'part of', {'concept': 'month'}] ['April 29', 'part of', {'concept': 'month'}] ['July 11', 'part of', {'concept': 'month'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?j ) { ( resource:April_29 ) ( resource:April_4 ) } . ?j property:part_of ?t }
[]
month
Q118 Q118 Q121
SYSTEM
April for 1st, 2nd, July for 3rd
Q118 Q118 Q121
(Q2508,P361,c(Q5151)) (Q2535,P361,c(Q5151)) (Q2701,P361,c(Q5151))
action union
action filter_type
action find
entity Q2508
relation P361
type Q5151
action filter_type
action find
entity Q2535
relation P361
type Q5151
action filter_type
action find
entity Q2701
relation P361
type Q5151
[ANSWERS]
['Q2508', 'P361', {'concept': 'Q5151'}] ['Q2535', 'P361', {'concept': 'Q5151'}] ['Q2701', 'P361', {'concept': 'Q5151'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?j ) { ( resource:Q2535 ) ( resource:Q2508 ) } . ?j property:P361 ?t }
April April July
Are April, April and July are April 4, April 29 and July 11 a portion of
April April July
action union
action filter_type
action find
entity April 4
relation part of
type month
action filter_type
action find
entity April 29
relation part of
type month
action filter_type
action find
entity July 11
relation part of
type month
['April 4', 'part of', {'concept': 'month'}] ['April 29', 'part of', {'concept': 'month'}] ['July 11', 'part of', {'concept': 'month'}]
SELECT DISTINCT ?t WHERE { VALUES ( ?j ) { ( resource:April_29 ) ( resource:April_4 ) } . ?j property:part_of ?t }
[]
Clarification
Simple Question|Single Entity|Indirect
Q118
P138
Q16521
USER
Which taxon is that month named after ?
(Q118,P138,c(Q16521))
action filter_type
action find
entity Q118
relation P138
type Q16521
['Q118', 'P138', {'concept': 'Q16521'}]
SELECT DISTINCT ?v WHERE { resource:Q118 property:P138 ?v . ?v rdf:type ontology:Q16521 }
April
action filter_type
action find
entity April
relation named after
type taxon
['April', 'named after', {'concept': 'taxon'}]
SELECT DISTINCT ?v WHERE { resource:April property:named_after ?v . ?v rdf:type ontology:taxon }
[]
taxon
Clarification for simple ques.
Q118
SYSTEM
Did you mean April ?
Q118 Q118 Q121
(Q118,P138,c(Q16521)) (Q118,P138,c(Q16521)) (Q121,P138,c(Q16521))
[ANSWER]
['Q118', 'P138', {'concept': 'Q16521'}] ['Q118', 'P138', {'concept': 'Q16521'}] ['Q121', 'P138', {'concept': 'Q16521'}]
SELECT DISTINCT ?v WHERE { resource:Q118 property:P138 ?v . ?v rdf:type ontology:Q16521 }
April April July
Did you mean April ?
April
['April', 'named after', {'concept': 'taxon'}] ['April', 'named after', {'concept': 'taxon'}] ['July', 'named after', {'concept': 'taxon'}]
SELECT DISTINCT ?v WHERE { resource:April property:named_after ?v . ?v rdf:type ontology:taxon }
[]
Simple Question (Coreferenced)
USER
Yes
(Q118,P138,c(Q16521))
['Q118', 'P138', {'concept': 'Q16521'}]
['April', 'named after', {'concept': 'taxon'}]
[]
Q12004
SYSTEM
Quercus
Q12004
(Q118,P138,c(Q16521))
action filter_type
action find
entity Q118
relation P138
type Q16521
That month is named for [ANSWER]
['Q118', 'P138', {'concept': 'Q16521'}]
SELECT DISTINCT ?v WHERE { resource:Q118 property:P138 ?v . ?v rdf:type ontology:Q16521 }
Quercus
That month is named for Quercus
Quercus
action filter_type
action find
entity April
relation named after
type taxon
['April', 'named after', {'concept': 'taxon'}]
SELECT DISTINCT ?v WHERE { resource:April property:named_after ?v . ?v rdf:type ontology:taxon }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P566
Q82799 Q16521
USER
Which names are a basionyms of max number of taxons ?
(c(Q16521),P566,Q24006173)
action argmax
action find_reverse_tuple_counts
relation P566
type Q82799
type Q16521
[{'concept': 'Q16521'}, 'P566', 'Q24006173']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:P566 ?v . ?v rdf:type ontology:Q82799 . ?k rdf:type ontology:Q16521 } GROUP BY ?v } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:P566 ?x . ?x rdf:type ontology:Q82799 . ?t rdf:type ontology:Q16521 } GROUP BY ?x } . FILTER ( ?s = ?b ) }
action argmax
action find_reverse_tuple_counts
relation basionym
type name
type taxon
[{'concept': 'taxon'}, 'basionym', 'Convolvulus corymbosus']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:basionym ?v . ?v rdf:type ontology:name . ?k rdf:type ontology:taxon } GROUP BY ?v } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:basionym ?x . ?x rdf:type ontology:name . ?t rdf:type ontology:taxon } GROUP BY ?x } . FILTER ( ?s = ?b ) }
[]
name taxon
Q11079289 Q17244388
SYSTEM
Salsola brachiata, Atriplex portulacoides
Q11079289 Q17244388
(c(Q16521),P566,Q24006173)
action argmax
action find_reverse_tuple_counts
relation P566
type Q82799
type Q16521
[ANSWERS] are a basionyms of max number of taxons
[{'concept': 'Q16521'}, 'P566', 'Q24006173']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:P566 ?v . ?v rdf:type ontology:Q82799 . ?k rdf:type ontology:Q16521 } GROUP BY ?v } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:P566 ?x . ?x rdf:type ontology:Q82799 . ?t rdf:type ontology:Q16521 } GROUP BY ?x } . FILTER ( ?s = ?b ) }
Salsola brachiata Atriplex portulacoides
Salsola brachiata and Atriplex portulacoides are a basionyms of max number of taxons
Salsola brachiata Atriplex portulacoides
action argmax
action find_reverse_tuple_counts
relation basionym
type name
type taxon
[{'concept': 'taxon'}, 'basionym', 'Convolvulus corymbosus']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?b ) { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?l ) WHERE { ?k property:basionym ?v . ?v rdf:type ontology:name . ?k rdf:type ontology:taxon } GROUP BY ?v } } . { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?s ) WHERE { ?t property:basionym ?x . ?x rdf:type ontology:name . ?t rdf:type ontology:taxon } GROUP BY ?x } . FILTER ( ?s = ?b ) }
[]