Simple Question (Direct)
Simple Question
Q23899281
P734
Q82799
USER
Which name is associated with Wei Li ?
(Q23899281,P734,c(Q82799))
action filter_type
action find
entity Q23899281
relation P734
type Q82799
['Q23899281', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q23899281 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Wei Li
action filter_type
action find
entity Wei Li
relation family name
type name
['Wei Li', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Wei_Li property:family_name ?w . ?w rdf:type ontology:name }
[]
name
Q842157
SYSTEM
Wei
Q842157
(Q23899281,P734,c(Q82799))
action filter_type
action find
entity Q23899281
relation P734
type Q82799
[ANSWER] is associated with [ANSWER] Li
['Q23899281', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q23899281 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Wei
Wei is associated with Wei Li
Wei
action filter_type
action find
entity Wei Li
relation family name
type name
['Wei Li', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Wei_Li property:family_name ?w . ?w rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q23899281
P641
Q349
USER
Which sport did that person participate in ?
(Q842157,P641,c(Q349))
action filter_type
action find
entity Q23899281
relation P641
type Q349
['Q842157', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q23899281 property:P641 ?i . ?i rdf:type ontology:Q349 }
Wei Li
action filter_type
action find
entity Wei Li
relation sport
type sport
['Wei', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Wei_Li property:sport ?i . ?i rdf:type ontology:sport }
[]
sport
Q500050
SYSTEM
cross country running
Q500050
(Q842157,P641,c(Q349))
action filter_type
action find
entity Q23899281
relation P641
type Q349
That person participated in [ANSWER]
['Q842157', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { resource:Q23899281 property:P641 ?i . ?i rdf:type ontology:Q349 }
cross country running
That person participated in cross country running
cross country running
action filter_type
action find
entity Wei Li
relation sport
type sport
['Wei', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { resource:Wei_Li property:sport ?i . ?i rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q23899281
P1344
Q13406554
USER
Which sport competition did Wei Li take part in ?
(Q23899281,P1344,c(Q13406554))
action filter_type
action find
entity Q23899281
relation P1344
type Q13406554
['Q23899281', 'P1344', {'concept': 'Q13406554'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q13406554 . resource:Q23899281 property:P1344 ?s }
Wei Li
action filter_type
action find
entity Wei Li
relation participant of
type sport competition
['Wei Li', 'participant of', {'concept': 'sport competition'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sport_competition . resource:Wei_Li property:participant_of ?s }
[]
sport competition
Q651450
SYSTEM
1997 World Championships in Athletics
Q651450
(Q23899281,P1344,c(Q13406554))
action filter_type
action find
entity Q23899281
relation P1344
type Q13406554
Wei did the [ANSWER]
['Q23899281', 'P1344', {'concept': 'Q13406554'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q13406554 . resource:Q23899281 property:P1344 ?s }
1997 World Championships in Athletics
Wei did the 1997 World Championships in Athletics
1997 World Championships in Athletics
action filter_type
action find
entity Wei Li
relation participant of
type sport competition
['Wei Li', 'participant of', {'concept': 'sport competition'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:sport_competition . resource:Wei_Li property:participant_of ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q23899281
P106
Q12737077
USER
What is the profession of that person ?
(Q651450,P106,c(Q12737077))
action filter_type
action find
entity Q23899281
relation P106
type Q12737077
['Q651450', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q23899281 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Wei Li
action filter_type
action find
entity Wei Li
relation occupation
type occupation
['1997 World Championships in Athletics', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Wei_Li property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q4439155
SYSTEM
long-distance runner
Q4439155
(Q651450,P106,c(Q12737077))
action filter_type
action find
entity Q23899281
relation P106
type Q12737077
The profession of that person is a [ANSWER]
['Q651450', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q23899281 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
long-distance runner
The profession of that person is a long-distance runner
long-distance runner
action filter_type
action find
entity Wei Li
relation occupation
type occupation
['1997 World Championships in Athletics', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Wei_Li property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q21484914
P361
Q8436 Q874405 Q82799
USER
How many names are parts of around the same number of families or social groups as Clay ?
(c(Q82799),P361,c(Q8436)|c(Q874405))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q874405
action count
action filter_multi_types
action find
entity Q21484914
relation P361
type Q8436
type Q874405
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?k WHERE { { ?k property:P361 ?v . ?k rdf:type ontology:Q82799 . ?v rdf:type ontology:Q8436 } UNION { ?k property:P361 ?v . ?k rdf:type ontology:Q82799 . ?v rdf:type ontology:Q874405 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { resource:Q21484914 property:P361 ?x . { VALUES ( ?o ) { ( ontology:Q8436 ) ( ontology:Q874405 ) } . ?x rdf:type ?o } } } . FILTER ( ?e = ?u ) }
Clay
action count
action approx
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type social group
action count
action filter_multi_types
action find
entity Clay
relation part of
type family
type social group
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'social group'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?k WHERE { { ?k property:part_of ?v . ?k rdf:type ontology:name . ?v rdf:type ontology:family } UNION { ?k property:part_of ?v . ?k rdf:type ontology:name . ?v rdf:type ontology:social_group } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { resource:Clay property:part_of ?x . { VALUES ( ?o ) { ( ontology:family ) ( ontology:social_group ) } . ?x rdf:type ?o } } } . FILTER ( ?e = ?u ) }
[]
family social group name
SYSTEM
316
Q19984029 Q23539781 Q16101731 Q16515753 Q27355533 Q22001585 Q26000745 Q26822115 Q19986366 Q2168099 Q19963541 Q20731004 Q27651197 Q21491652 Q21501467 Q27037178 Q21484983 Q12783920 Q27037174 Q5791319 Q27651212 Q12594770 Q27356490 Q1946932 Q21144151 Q20731003 Q27357908 Q18001608 Q26775417 Q20155939 Q11283653 Q26971843 Q27465067 Q18645215 Q12788667 Q19831808 Q27357598 Q21475479 Q24477965 Q21488853 Q26156283 Q21487329 Q24477968 Q24090443 Q20675459 Q21279602 Q1058384 Q16563753 Q21450326 Q21510209 Q25114460 Q27436303 Q21431253 Q20985269 Q27037161 Q355505 Q7071783 Q27037165 Q15629245 Q21498452 Q27037169 Q1513700 Q18515515 Q18808411 Q21492574 Q16882305 Q1240901 Q19688789 Q24251030 Q18844248 Q27678568 Q19311987 Q5646565 Q20089343 Q19672747 Q1093580 Q19828992 Q21043141 Q22673958 Q4082729 Q18171095 Q110874 Q26448488 Q19832245 Q26822136 Q26822137 Q27635577 Q26822132 Q19688838 Q23636060 Q26822155 Q10145967 Q16161715 Q11878943 Q21506948 Q252216 Q2547055 Q21492983 Q21584287 Q272914 Q23039002 Q27037119 Q19944848 Q2553935 Q18645909 Q21512664 Q27204774 Q18808940 Q1173421 Q27476988 Q23822720 Q21450808 Q25114459 Q15238609 Q27230306 Q27538384 Q16390676 Q26772804 Q26822160 Q25695405 Q20900701 Q24091156 Q26986281 Q26235096 Q26944932 Q20875974 Q15897047 Q27450778 Q3281200 Q27229561 Q26944931 Q23640302 Q26266311 Q3372303 Q10587130 Q17165817 Q15926381 Q26736729 Q21450395 Q19687637 Q27357173 Q27356099 Q1247793 Q21470412 Q27355703 Q27185681 Q21506801 Q27203015 Q23590373 Q21534988 Q21405537 Q27355517 Q26235204 Q21069157 Q27229604 Q23907762 Q27450583 Q27229563 Q26266310 Q27450587 Q15835964 Q21471177 Q20083701 Q885595 Q27203027 Q12624980 Q1707301 Q26822099 Q2876425 Q27229572 Q24573284 Q27251921 Q5 Q631147 Q26868860 Q27651154 Q20003434 Q26736681 Q27352651 Q26877838 Q26986610 Q21502033 Q26449961 Q21452487 Q1158284 Q16876541 Q16932005 Q15788891 Q27642537 Q27450911 Q12788669 Q23590368 Q13639177 Q27037180 Q19944235 Q804437 Q21450555 Q27670177 Q4400681 Q23041619 Q1620641 Q21130107 Q808994 Q16279139 Q21447940 Q12600404 Q19998957 Q17505763 Q18552178 Q21484879 Q27356272 Q19768404 Q12036851 Q19810530 Q26822081 Q24090532 Q18228388 Q26906549 Q24090418 Q26742856 Q26986918 Q1703599 Q19961051 Q382004 Q12601635 Q5461714 Q27350540 Q12020943 Q1399288 Q12188082 Q20010325 Q26235099 Q23578592 Q2491016 Q27133109 Q19831835 Q21491435 Q23767331 Q23767330 Q21507872 Q27450606 Q21508944 Q2824680 Q27450608 Q26774382 Q19550817 Q18689509 Q27355496 Q19768398 Q27450724 Q15813147 Q15711050 Q12784475 Q26736416 Q21431135 Q26772911 Q21484692 Q26736415 Q27037157 Q27651236 Q26972674 Q18402175 Q21886149 Q12785732 Q19839042 Q27450686 Q26741038 Q23569212 Q21492540 Q21142292 Q27450728 Q27450834 Q27450836 Q23907739 Q1915243 Q2287331 Q23578587 Q22348139 Q21057288 Q21476618 Q263542 Q3701009 Q21484521 Q21484914 Q4835658 Q746990 Q4812724 Q21534898 Q26234451 Q19550800 Q23538357 Q1737707 Q26972634 Q16175496 Q19856970 Q21143968 Q21143966 Q20064977 Q21450552 Q19839041 Q27450738 Q27450739 Q876933 Q21538548 Q5034376 Q27131901 Q26741034 Q19582298 Q19688887 Q27450824 Q26220628 Q861966 Q13582244 Q15789615 Q20982280 Q27450829
(c(Q82799),P361,c(Q8436)|c(Q874405))
action count
action approx
action union
action find_tuple_counts
relation P361
type Q82799
type Q8436
action find_tuple_counts
relation P361
type Q82799
type Q874405
action count
action filter_multi_types
action find
entity Q21484914
relation P361
type Q8436
type Q874405
[ANSWER]
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q8436'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?k WHERE { { ?k property:P361 ?v . ?k rdf:type ontology:Q82799 . ?v rdf:type ontology:Q8436 } UNION { ?k property:P361 ?v . ?k rdf:type ontology:Q82799 . ?v rdf:type ontology:Q874405 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { resource:Q21484914 property:P361 ?x . { VALUES ( ?o ) { ( ontology:Q8436 ) ( ontology:Q874405 ) } . ?x rdf:type ?o } } } . FILTER ( ?e = ?u ) }
Minami Asami Carter Farkas Türkkan Lamont Meta Candan Brodie human Rotavirusses Cassie Crawford Littleton Esin Olivera Bainbridge Dwyer Abram Bridger Tajinaste Redmond Man Holly Moosa Fedde Crawford Ademola Sylvain Dalibor Clancy Czech family name Ado Özgen Agostino Fabjan Loren Siemion Ersan Guibert Tyson Whittingstall Hewitt Guibert Matsuo Anania Regan hakham Hunter Jayne Sierra Savva Gisbert Adamou Barrington Hakim Nobiliary particle O'Donovan family Abner lizard Kelso Hersey Gerlach Albano Egerton Loui Rostopchin praenomen Achim Barnaby Rowan Sami Yoshihara Han Han Aubrey Han surname Shelley Cave Sherman Belarusian surname Armand patronymic Akiyoshi Sami Akilu Řehoř Gruffudd Wito Kaj Cassie Rauf Grand Master of the Teutonic Knights Albin Urban Izumi Árnadóttir Walther Regan Jabez Çubukçubaşı Marshall Melvyn Eraydın Wedekind Abe Redouane Parvin Neil Davern Şentürk Malick Inal Savva nomen Durmuş Fedde Falk Elias Chadi Curtis Nolan Abe Seyfi Lillie Apple Ševela Percy Shigematsu Tent caterpillar Köken Apple Britt Trimnell Mai Moa Warren He Olumide Hillis Rahim Cave Frenk Kinnon Tyrell Eden Rickard Herschel Joby Raimond Yaşar Edward Savin Loudon Mateja Sweeney Florenz Asiedu Robison Ritchard Mordaunt Mynors Prentice Man Blue Joby Hyeon Tyler Ademola Aïssata Aydın Laverne Lamont human infraspecific name Cale Gottlieb Marielle Veit Seon Sanusi Addis Browning Takumi Alfonzo Heinz Máté Mai Blake Robbie Mahrez Fabjan Raimond Jean Dalrymple Osborne Bakir Hilbert Ripley Russian surname Stuart Hisataka Calvert Barry Máté Hester Sang Paltiel Virgil Alonso Salman Golden Courtney Michel Han Amin Minami Leonard Germann Hara Fabiano Sabra Jordan Izumi Afa-Negus Seon Florida black bass Sang Hunter Fearnley James Ganna Lillie Aynsley orthographical variant Arnell Qutb Norman Koren Koren Henning Wilf Finlay Ado Haym Chariton Alden Marion Milić Jonas Freundel Bas Lu Amos Roveda Gill Abbas Neilson Roveda Řehoř Sylvester Thijs Bernard Alfonzo Berchtold Cushman Flower Patti Clint Kingsley Gerbrand Greenbury Harouna Henrie Florian McKeown Simon Aynsley Ripley Hester Miwa Griffith Dale Romaine Clay BIFF Brahman Ataman Fethi Rupert Alden Azuma Keefe Noah Bas Squire Herrmann Henrie Dong Hamilton Cushman Keill Moumouni magi Biff Caomhánach Tokiwa Patti Melville Tone Savea Arian dung beetles Dale Brady Maury Akpan
316
action count
action approx
action union
action find_tuple_counts
relation part of
type name
type family
action find_tuple_counts
relation part of
type name
type social group
action count
action filter_multi_types
action find
entity Clay
relation part of
type family
type social group
[{'concept': 'name'}, 'part of', [{'concept': 'family'}, {'concept': 'social group'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?k WHERE { { ?k property:part_of ?v . ?k rdf:type ontology:name . ?v rdf:type ontology:family } UNION { ?k property:part_of ?v . ?k rdf:type ontology:name . ?v rdf:type ontology:social_group } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { resource:Clay property:part_of ?x . { VALUES ( ?o ) { ( ontology:family ) ( ontology:social_group ) } . ?x rdf:type ?o } } } . FILTER ( ?e = ?u ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3763116 Q23899281
P27 P1532
Q15617994
USER
Which administrative territories did Wei Li play for or are Gianfranco Nappi an inhabitant of ?
OR((Q23899281,P1532,c(Q15617994)), (Q3763116,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q23899281
relation P1532
action find
entity Q3763116
relation P27
type Q15617994
{'OR': [['Q23899281', 'P1532', {'concept': 'Q15617994'}], ['Q3763116', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3763116 property:P27 ?f } UNION { resource:Q23899281 property:P1532 ?f } } . ?f rdf:type ontology:Q15617994 }
Gianfranco Nappi Wei Li
action filter_type
action union
action find
entity Wei Li
relation country for sport
action find
entity Gianfranco Nappi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Wei Li', 'country for sport', {'concept': 'designation for an administrative territorial entity'}], ['Gianfranco Nappi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Gianfranco_Nappi property:country_of_citizenship ?f } UNION { resource:Wei_Li property:country_for_sport ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148 Q38
SYSTEM
People's Republic of China, Italy
Q148 Q38
OR((Q23899281,P1532,c(Q15617994)), (Q3763116,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q23899281
relation P1532
action find
entity Q3763116
relation P27
type Q15617994
Wei did the [ANSWERS]
{'OR': [['Q23899281', 'P1532', {'concept': 'Q15617994'}], ['Q3763116', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3763116 property:P27 ?f } UNION { resource:Q23899281 property:P1532 ?f } } . ?f rdf:type ontology:Q15617994 }
People's Republic of China Italy
Wei did the People's Republic of China and Italy
People's Republic of China Italy
action filter_type
action union
action find
entity Wei Li
relation country for sport
action find
entity Gianfranco Nappi
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Wei Li', 'country for sport', {'concept': 'designation for an administrative territorial entity'}], ['Gianfranco Nappi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Gianfranco_Nappi property:country_of_citizenship ?f } UNION { resource:Wei_Li property:country_for_sport ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q131512
P180
Q12737077 Q18783400 Q386724
USER
How many occupations are demonstrated in less number of genres of sculpture and works than farmer ?
(c(Q18783400)|c(Q386724),P180,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q131512
relation P180
type Q18783400
type Q386724
[[{'concept': 'Q18783400'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q18783400 } UNION { ?g property:P180 ?b . ?g rdf:type ontology:Q386724 . ?b rdf:type ontology:Q12737077 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:P180 resource:Q131512 . { VALUES ( ?a ) { ( ontology:Q18783400 ) ( ontology:Q386724 ) } . ?w rdf:type ?a } } } . FILTER ( ?r < ?j ) }
farmer
action count
action less
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 work
action count
action filter_multi_types
action find_reverse
entity farmer
relation depicts
type genre of sculpture
type work
[[{'concept': 'genre of sculpture'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:depicts ?b . ?b rdf:type ontology:occupation . ?g rdf:type ontology:genre_of_sculpture } UNION { ?g property:depicts ?b . ?g rdf:type ontology:work . ?b rdf:type ontology:occupation } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:depicts resource:farmer . { VALUES ( ?a ) { ( ontology:genre_of_sculpture ) ( ontology:work ) } . ?w rdf:type ?a } } } . FILTER ( ?r < ?j ) }
[]
occupation genre of sculpture work
SYSTEM
224
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 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 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(Q18783400)|c(Q386724),P180,c(Q12737077))
action count
action less
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q18783400
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q131512
relation P180
type Q18783400
type Q386724
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q18783400 } UNION { ?g property:P180 ?b . ?g rdf:type ontology:Q386724 . ?b rdf:type ontology:Q12737077 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:P180 resource:Q131512 . { VALUES ( ?a ) { ( ontology:Q18783400 ) ( ontology:Q386724 ) } . ?w rdf:type ?a } } } . FILTER ( ?r < ?j ) }
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 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 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
224
action count
action less
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 work
action count
action filter_multi_types
action find_reverse
entity farmer
relation depicts
type genre of sculpture
type work
[[{'concept': 'genre of sculpture'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?g ) AS ?r ) WHERE { { ?g property:depicts ?b . ?b rdf:type ontology:occupation . ?g rdf:type ontology:genre_of_sculpture } UNION { ?g property:depicts ?b . ?g rdf:type ontology:work . ?b rdf:type ontology:occupation } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { ?w property:depicts resource:farmer . { VALUES ( ?a ) { ( ontology:genre_of_sculpture ) ( ontology:work ) } . ?w rdf:type ?a } } } . FILTER ( ?r < ?j ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q500050
P101
Q502895
USER
Who works in the domain of cross country running ?
(c(Q502895),P101,Q500050)
action filter_type
action find_reverse
entity Q500050
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q500050']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P101 resource:Q500050 }
cross country running
action filter_type
action find_reverse
entity cross country running
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'cross country running']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:field_of_work resource:cross_country_running }
[]
common name
Q171500 Q21402269 Q15864937
SYSTEM
Haile Gebrselassie, Alison Wyeth, Paul Donovan
Q21402269 Q171500 Q2336382 Q7095211 Q15864937 Q21401997 Q2849387
(c(Q502895),P101,Q500050)
action filter_type
action find_reverse
entity Q500050
relation P101
type Q502895
[ANSWERS] work in the domain of cross country running
[{'concept': 'Q502895'}, 'P101', 'Q500050']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P101 resource:Q500050 }
Alison Wyeth Haile Gebrselassie Tonnie Dirks Onèsphore Nkunzimana Paul Donovan Isaac Korir Angela Tooby
Haile Gebrselassie, Alison Wyeth and Paul Donovan work in the domain of cross country running
Haile Gebrselassie Alison Wyeth Paul Donovan
action filter_type
action find_reverse
entity cross country running
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'cross country running']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:field_of_work resource:cross_country_running }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q171500 Q21402269 Q15864937
P21
Q290
USER
Which sexes do Haile Gebrselassie, Alison Wyeth and Paul Donovan belong to ?
(Q171500,P21,c(Q290)) (Q21402269,P21,c(Q290)) (Q15864937,P21,c(Q290))
action union
action filter_type
action find
entity Q171500
relation P21
type Q290
action filter_type
action find
entity Q21402269
relation P21
type Q290
action filter_type
action find
entity Q15864937
relation P21
type Q290
['Q171500', 'P21', {'concept': 'Q290'}] ['Q21402269', 'P21', {'concept': 'Q290'}] ['Q15864937', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { { resource:Q171500 property:P21 ?o . ?o rdf:type ontology:Q290 } UNION { resource:Q21402269 property:P21 ?o . ?o rdf:type ontology:Q290 } }
Haile Gebrselassie Alison Wyeth Paul Donovan
action union
action filter_type
action find
entity Haile Gebrselassie
relation gender
type sex
action filter_type
action find
entity Alison Wyeth
relation gender
type sex
action filter_type
action find
entity Paul Donovan
relation gender
type sex
['Haile Gebrselassie', 'gender', {'concept': 'sex'}] ['Alison Wyeth', 'gender', {'concept': 'sex'}] ['Paul Donovan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { { resource:Haile_Gebrselassie property:gender ?o . ?o rdf:type ontology:sex } UNION { resource:Alison_Wyeth property:gender ?o . ?o rdf:type ontology:sex } }
[]
sex
Q6581097 Q6581072 Q6581097
SYSTEM
male for 1st, 3rd, female for 2nd
Q6581097 Q6581072 Q6581097
(Q171500,P21,c(Q290)) (Q21402269,P21,c(Q290)) (Q15864937,P21,c(Q290))
action union
action filter_type
action find
entity Q171500
relation P21
type Q290
action filter_type
action find
entity Q21402269
relation P21
type Q290
action filter_type
action find
entity Q15864937
relation P21
type Q290
[ANSWERS]
['Q171500', 'P21', {'concept': 'Q290'}] ['Q21402269', 'P21', {'concept': 'Q290'}] ['Q15864937', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { { resource:Q171500 property:P21 ?o . ?o rdf:type ontology:Q290 } UNION { resource:Q21402269 property:P21 ?o . ?o rdf:type ontology:Q290 } }
male female male
Haile Gebrselassie , Alison Wyeth and Paul Donovan belong to the male, female and male
male female male
action union
action filter_type
action find
entity Haile Gebrselassie
relation gender
type sex
action filter_type
action find
entity Alison Wyeth
relation gender
type sex
action filter_type
action find
entity Paul Donovan
relation gender
type sex
['Haile Gebrselassie', 'gender', {'concept': 'sex'}] ['Alison Wyeth', 'gender', {'concept': 'sex'}] ['Paul Donovan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { { resource:Haile_Gebrselassie property:gender ?o . ?o rdf:type ontology:sex } UNION { resource:Alison_Wyeth property:gender ?o . ?o rdf:type ontology:sex } }
[]