Simple Question (Direct)
Simple Question
Q5240930
P106
Q12737077
USER
Which occupations have David Weir as his/her 's career ?
(Q5240930,P106,c(Q12737077))
action filter_type
action find
entity Q5240930
relation P106
type Q12737077
['Q5240930', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q5240930 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
David Weir
action filter_type
action find
entity David Weir
relation occupation
type occupation
['David Weir', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:David_Weir property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
(Q5240930,P106,c(Q12737077))
action filter_type
action find
entity Q5240930
relation P106
type Q12737077
Player [ANSWERS] have David Weir as his/her 's career
['Q5240930', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q5240930 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
association football manager association football player
Player association football manager and association football player have David Weir as his/her 's career
association football manager association football player
action filter_type
action find
entity David Weir
relation occupation
type occupation
['David Weir', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:David_Weir property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q628099 Q937857
P425
Q349
USER
Who have association football manager and association football player as the associated fields of occupation ?
(Q628099,P425,c(Q349)) (Q937857,P425,c(Q349))
action union
action filter_type
action find
entity Q628099
relation P425
type Q349
action filter_type
action find
entity Q937857
relation P425
type Q349
['Q628099', 'P425', {'concept': 'Q349'}] ['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { { resource:Q937857 property:P425 ?c . ?c rdf:type ontology:Q349 } UNION { resource:Q628099 property:P425 ?c . ?c rdf:type ontology:Q349 } }
association football manager association football player
action union
action filter_type
action find
entity association football manager
relation field of this occupation
type sport
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football manager', 'field of this occupation', {'concept': 'sport'}] ['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { { resource:association_football_player property:field_of_this_occupation ?c . ?c rdf:type ontology:sport } UNION { resource:association_football_manager property:field_of_this_occupation ?c . ?c rdf:type ontology:sport } }
[]
sport
Q2736 Q2736
SYSTEM
association football
Q2736 Q2736
(Q628099,P425,c(Q349)) (Q937857,P425,c(Q349))
action union
action filter_type
action find
entity Q628099
relation P425
type Q349
action filter_type
action find
entity Q937857
relation P425
type Q349
And [ANSWER] and [ANSWER] have [ANSWER] manager and [ANSWER] player as the associated fields of occupation
['Q628099', 'P425', {'concept': 'Q349'}] ['Q937857', 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { { resource:Q937857 property:P425 ?c . ?c rdf:type ontology:Q349 } UNION { resource:Q628099 property:P425 ?c . ?c rdf:type ontology:Q349 } }
association football association football
And association football and association football have association football manager and association football player as the associated fields of occupation
association football association football
action union
action filter_type
action find
entity association football manager
relation field of this occupation
type sport
action filter_type
action find
entity association football player
relation field of this occupation
type sport
['association football manager', 'field of this occupation', {'concept': 'sport'}] ['association football player', 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { { resource:association_football_player property:field_of_this_occupation ?c . ?c rdf:type ontology:sport } UNION { resource:association_football_manager property:field_of_this_occupation ?c . ?c rdf:type ontology:sport } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5240930
P734
Q82799
USER
Which name is associated with David Weir ?
(Q5240930,P734,c(Q82799))
action filter_type
action find
entity Q5240930
relation P734
type Q82799
['Q5240930', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q5240930 property:P734 ?k . ?k rdf:type ontology:Q82799 }
David Weir
action filter_type
action find
entity David Weir
relation family name
type name
['David Weir', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:David_Weir property:family_name ?k . ?k rdf:type ontology:name }
[]
name
Q17122937
SYSTEM
Weir
Q17122937
(Q5240930,P734,c(Q82799))
action filter_type
action find
entity Q5240930
relation P734
type Q82799
Fiona [ANSWER] is associated with David [ANSWER]
['Q5240930', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q5240930 property:P734 ?k . ?k rdf:type ontology:Q82799 }
Weir
Fiona Weir is associated with David Weir
Weir
action filter_type
action find
entity David Weir
relation family name
type name
['David Weir', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:David_Weir property:family_name ?k . ?k rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5240930
P54
Q1194951
USER
What is David Weir a member of ?
(Q5240930,P54,c(Q1194951))
action filter_type
action find
entity Q5240930
relation P54
type Q1194951
['Q5240930', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1194951 . resource:Q5240930 property:P54 ?j }
David Weir
action filter_type
action find
entity David Weir
relation member of sports team
type national sports team
['David Weir', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:national_sports_team . resource:David_Weir property:member_of_sports_team ?j }
[]
national sports team
Q47762
SYSTEM
England national football team
Q47762
(Q5240930,P54,c(Q1194951))
action filter_type
action find
entity Q5240930
relation P54
type Q1194951
David Weir a member of is of [ANSWER]
['Q5240930', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q1194951 . resource:Q5240930 property:P54 ?j }
England national football team
David Weir a member of is of England national football team
England national football team
action filter_type
action find
entity David Weir
relation member of sports team
type national sports team
['David Weir', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:national_sports_team . resource:David_Weir property:member_of_sports_team ?j }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15640034
Q1194951
USER
And also tell me about Poul Andersen?
(Q15640034,P54,c(Q1194951))
action filter_type
action find
entity Q15640034
relation P54
type Q1194951
['Q15640034', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?f WHERE { resource:Q15640034 property:P54 ?f . ?f rdf:type ontology:Q1194951 }
Poul Andersen
action filter_type
action find
entity Poul Andersen
relation member of sports team
type national sports team
['Poul Andersen', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?f WHERE { resource:Poul_Andersen property:member_of_sports_team ?f . ?f rdf:type ontology:national_sports_team }
[]
national sports team
Q131785
SYSTEM
Denmark national football team
Q131785
(Q15640034,P54,c(Q1194951))
action filter_type
action find
entity Q15640034
relation P54
type Q1194951
[ANSWER]
['Q15640034', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?f WHERE { resource:Q15640034 property:P54 ?f . ?f rdf:type ontology:Q1194951 }
Denmark national football team
Denmark national football team
action filter_type
action find
entity Poul Andersen
relation member of sports team
type national sports team
['Poul Andersen', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?f WHERE { resource:Poul_Andersen property:member_of_sports_team ?f . ?f rdf:type ontology:national_sports_team }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q131785 Q2318068
P54
Q502895
USER
Is Ivan Jensen a member of that national sports team ?
(Q2318068,P54,Q131785)
action is_in
entity Q131785
action find
entity Q2318068
relation P54
['Q2318068', 'P54', 'Q131785']
ASK WHERE { resource:Q2318068 property:P54 resource:Q131785 }
Denmark national football team Ivan Jensen
action is_in
entity Denmark national football team
action find
entity Ivan Jensen
relation member of sports team
['Ivan Jensen', 'member of sports team', 'Denmark national football team']
ASK WHERE { resource:Ivan_Jensen property:member_of_sports_team resource:Denmark_national_football_team }
[]
common name
SYSTEM
YES
(Q2318068,P54,Q131785)
action is_in
entity Q131785
action find
entity Q2318068
relation P54
[ANSWER]
['Q2318068', 'P54', 'Q131785']
ASK WHERE { resource:Q2318068 property:P54 resource:Q131785 }
Yes
action is_in
entity Denmark national football team
action find
entity Ivan Jensen
relation member of sports team
['Ivan Jensen', 'member of sports team', 'Denmark national football team']
ASK WHERE { resource:Ivan_Jensen property:member_of_sports_team resource:Denmark_national_football_team }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q151885 Q853614 Q82799
USER
How many names are a portion of exactly 1 concepts or identifiers ?
(c(Q82799),P361,c(Q151885)|c(Q853614))
action count
action equal
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q853614
value 1
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q853614'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?i WHERE { { ?i property:P361 ?g . ?i rdf:type ontology:Q82799 . ?g rdf:type ontology:Q151885 } UNION { ?i rdf:type ontology:Q82799 . ?g rdf:type ontology:Q853614 . ?i property:P361 ?g } } GROUP BY ?i } . FILTER ( ?p = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type identifier
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'identifier'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?i WHERE { { ?i property:part_of ?g . ?i rdf:type ontology:name . ?g rdf:type ontology:concept } UNION { ?i rdf:type ontology:name . ?g rdf:type ontology:identifier . ?i property:part_of ?g } } GROUP BY ?i } . FILTER ( ?p = 1 ) }
[]
concept identifier name
SYSTEM
255
Q19984029 Q23539781 Q16101731 Q16515753 Q27355533 Q22001585 Q26000745 Q26822115 Q19986366 Q19963541 Q20731004 Q27651197 Q21491652 Q21501467 Q27037178 Q21484983 Q12783920 Q27037174 Q27651212 Q12594770 Q27356490 Q1946932 Q21144151 Q20731003 Q27357908 Q18001608 Q26775417 Q20155939 Q26971843 Q27465067 Q18645215 Q12788667 Q19831808 Q27357598 Q21475479 Q24477965 Q21488853 Q21487329 Q24477968 Q24090443 Q20675459 Q21279602 Q1058384 Q16563753 Q21450326 Q21510209 Q25114460 Q27436303 Q21431253 Q20985269 Q27037161 Q355505 Q27037165 Q21498452 Q27037169 Q1513700 Q18515515 Q18808411 Q21492574 Q19688789 Q18844248 Q27678568 Q19311987 Q5646565 Q20089343 Q19672747 Q19828992 Q21043141 Q22673958 Q4082729 Q18171095 Q110874 Q26448488 Q19832245 Q26822136 Q26822137 Q27635577 Q26822132 Q19688838 Q23636060 Q26822155 Q16161715 Q11878943 Q21506948 Q2547055 Q21492983 Q21584287 Q23039002 Q27037119 Q19944848 Q21512664 Q27204774 Q18808940 Q1173421 Q27476988 Q23822720 Q21450808 Q25114459 Q27230306 Q27538384 Q16390676 Q26772804 Q26822160 Q20900701 Q26986281 Q26235096 Q26944932 Q15897047 Q27450778 Q27229561 Q26944931 Q23640302 Q3372303 Q17165817 Q26736729 Q21450395 Q27357173 Q27356099 Q1247793 Q27355703 Q27185681 Q21506801 Q27203015 Q23590373 Q27355517 Q26235204 Q21069157 Q27229604 Q23907762 Q27450583 Q27229563 Q27450587 Q15835964 Q21471177 Q20083701 Q885595 Q27203027 Q1707301 Q26822099 Q27229572 Q24573284 Q27251921 Q26868860 Q20003434 Q26877838 Q26986610 Q21502033 Q26449961 Q21452487 Q1158284 Q16876541 Q16932005 Q27642537 Q27450911 Q12788669 Q23590368 Q13639177 Q27037180 Q19944235 Q804437 Q21450555 Q27670177 Q23041619 Q1620641 Q21130107 Q808994 Q16279139 Q21447940 Q19998957 Q17505763 Q18552178 Q27356272 Q19768404 Q12036851 Q19810530 Q26822081 Q24090532 Q18228388 Q26906549 Q26742856 Q26986918 Q1703599 Q19961051 Q12020943 Q12188082 Q20010325 Q26235099 Q23578592 Q27133109 Q21491435 Q23767331 Q23767330 Q21507872 Q27450606 Q21508944 Q2824680 Q27450608 Q26774382 Q19550817 Q18689509 Q27355496 Q19768398 Q15813147 Q12784475 Q21431135 Q26772911 Q21484692 Q27037157 Q27651236 Q26972674 Q18402175 Q21886149 Q12785732 Q19839042 Q27450686 Q23569212 Q21492540 Q21142292 Q27450728 Q27450834 Q27450836 Q23907739 Q2287331 Q23578587 Q22348139 Q21057288 Q21476618 Q3701009 Q21484521 Q746990 Q4812724 Q21534898 Q26234451 Q19550800 Q23538357 Q1737707 Q26972634 Q16175496 Q19856970 Q21143968 Q21143966 Q21450552 Q19839041 Q27450738 Q27450739 Q876933 Q27131901 Q19582298 Q19688887 Q27450824 Q26220628 Q13582244 Q15789615 Q20982280 Q27450829
(c(Q82799),P361,c(Q151885)|c(Q853614))
action count
action equal
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q853614
value 1
[ANSWER]
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q853614'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?i WHERE { { ?i property:P361 ?g . ?i rdf:type ontology:Q82799 . ?g rdf:type ontology:Q151885 } UNION { ?i rdf:type ontology:Q82799 . ?g rdf:type ontology:Q853614 . ?i property:P361 ?g } } GROUP BY ?i } . FILTER ( ?p = 1 ) }
Minami Asami Carter Farkas Türkkan Lamont Meta Candan Brodie Cassie Crawford Littleton Esin Olivera Bainbridge Dwyer Abram Bridger Redmond Man Holly Moosa Fedde Crawford Ademola Sylvain Dalibor Clancy Ado Özgen Agostino Fabjan Loren Siemion Ersan Guibert Tyson Hewitt Guibert Matsuo Anania Regan hakham Hunter Jayne Sierra Savva Gisbert Adamou Barrington Hakim Nobiliary particle Abner Kelso Hersey Gerlach Albano Egerton Loui Achim Rowan Sami Yoshihara Han Han Aubrey Shelley Cave Sherman Belarusian surname Armand patronymic Akiyoshi Sami Akilu Řehoř Gruffudd Wito Kaj Cassie Rauf Albin Urban Izumi Walther Regan Jabez Marshall Melvyn Eraydın Redouane Parvin Neil Davern Şentürk Malick Inal Savva Durmuş Fedde Falk Elias Chadi Nolan Seyfi Lillie Apple Percy Shigematsu Köken Apple Britt Mai Warren Olumide Hillis Cave Frenk Kinnon Eden Rickard Herschel Joby Raimond Savin Loudon Mateja Sweeney Florenz Asiedu Robison Mordaunt Mynors Prentice Man Blue Joby Tyler Ademola Aydın Laverne Lamont Cale Marielle Sanusi Addis Browning Takumi Alfonzo Heinz Máté Mai Robbie Mahrez Fabjan Raimond Jean Dalrymple Osborne Bakir Hilbert Ripley Stuart Hisataka Calvert Barry Máté Hester Paltiel Virgil Alonso Golden Courtney Michel Han Amin Minami Leonard Germann Fabiano Sabra Jordan Izumi Hunter James Ganna Lillie Aynsley Arnell Norman Koren Koren Henning Wilf Finlay Ado Haym Chariton Alden Marion Milić Jonas Bas Amos Gill Abbas Neilson Řehoř Sylvester Thijs Bernard Alfonzo Berchtold Cushman Flower Clint Kingsley Gerbrand Greenbury Harouna Henrie Florian Simon Aynsley Ripley Hester Miwa Dale Romaine Brahman Ataman Fethi Rupert Alden Azuma Keefe Noah Bas Squire Herrmann Henrie Hamilton Cushman Keill Moumouni magi Tokiwa Melville Tone Savea Arian Dale Brady Maury Akpan
255
action count
action equal
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type identifier
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'identifier'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?p ) ?i WHERE { { ?i property:part_of ?g . ?i rdf:type ontology:name . ?g rdf:type ontology:concept } UNION { ?i rdf:type ontology:name . ?g rdf:type ontology:identifier . ?i property:part_of ?g } } GROUP BY ?i } . FILTER ( ?p = 1 ) }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q82955 Q17122937
P734 P106
Q502895
USER
Which people have Weir as their family name and are not working as politician ?
AND((c(Q502895),P734,Q17122937), NOT((c(Q502895),P106,Q82955)))
action filter_type
action difference
action find_reverse
entity Q17122937
relation P734
action find_reverse
entity Q82955
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q17122937'], {'NOT': [[{'concept': 'Q502895'}, 'P106', 'Q82955']]}]}
SELECT DISTINCT ?b WHERE { ?b property:P734 resource:Q17122937 . FILTER NOT EXISTS { ?b property:P106 resource:Q82955 } . ?b rdf:type ontology:Q502895 }
politician Weir
action filter_type
action difference
action find_reverse
entity Weir
relation family name
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Weir'], {'NOT': [[{'concept': 'common name'}, 'occupation', 'politician']]}]}
SELECT DISTINCT ?b WHERE { ?b property:family_name resource:Weir . FILTER NOT EXISTS { ?b property:occupation resource:politician } . ?b rdf:type ontology:common_name }
[]
common name
Q7794958 Q1284220 Q6232998 Q2411818 Q5240930 Q3695965 Q3938462 Q5496529 Q18590295 Q464467
SYSTEM
Some of them are Thomas Weir, J. Alden Weir, John Ferguson Weir, Judith Weir, David Weir, Robert Walter Weir, Robert Weir, Fred Weir, Andy Weir, David Weir
Q5240930 Q5240931 Q2492648 Q888316 Q3550728 Q55424 Q352193 Q3436349 Q3033645 Q4911315 Q3938462 Q4889367 Q4859397 Q7794956 Q1788781 Q6552836 Q6232998 Q7794958 Q707994 Q18590295 Q7818012 Q5496529 Q3621173 Q6525833 Q7052922 Q436379 Q6896690 Q2756690 Q3695965 Q1284220 Q464467 Q2411818 Q1572825
AND((c(Q502895),P734,Q17122937), NOT((c(Q502895),P106,Q82955)))
action filter_type
action difference
action find_reverse
entity Q17122937
relation P734
action find_reverse
entity Q82955
relation P106
type Q502895
[ANSWERS] have Weir as their family name and are not working as politician
{'AND': [[{'concept': 'Q502895'}, 'P734', 'Q17122937'], {'NOT': [[{'concept': 'Q502895'}, 'P106', 'Q82955']]}]}
SELECT DISTINCT ?b WHERE { ?b property:P734 resource:Q17122937 . FILTER NOT EXISTS { ?b property:P106 resource:Q82955 } . ?b rdf:type ontology:Q502895 }
David Weir David Weir Amanda Weir Bob Weir Stephnie Weir Peter Weir Johnny Weir Robert Stanley Weir Doddie Weir Bill Weir Robert Weir Benjamin Weir Barbara Weir Thomas Weir Alison Weir Lindsay Weir John Ferguson Weir Thomas Weir Mike Weir Andy Weir Tom Weir Fred Weir Arabella Weir Leonard Weir Norman Weir Gillian Weir Molly Weir David Weir Robert Walter Weir J. Alden Weir David Weir Judith Weir Harrison Weir
Thomas Weir, J. Alden Weir, John Ferguson Weir, Judith Weir, David Weir, Robert Walter Weir, Robert Weir, Fred Weir, Andy Weir and David Weir have Weir as their family name and are not working as politician
Thomas Weir J. Alden Weir John Ferguson Weir Judith Weir David Weir Robert Walter Weir Robert Weir Fred Weir Andy Weir David Weir
action filter_type
action difference
action find_reverse
entity Weir
relation family name
action find_reverse
entity politician
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'family name', 'Weir'], {'NOT': [[{'concept': 'common name'}, 'occupation', 'politician']]}]}
SELECT DISTINCT ?b WHERE { ?b property:family_name resource:Weir . FILTER NOT EXISTS { ?b property:occupation resource:politician } . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q7794958 Q1284220 Q6232998 Q2411818 Q5240930 Q3695965 Q3938462 Q5496529 Q18590295 Q464467
P21
Q290
USER
Which sexes do those people have ?
(Q7794958,P21,c(Q290)) (Q1284220,P21,c(Q290)) (Q6232998,P21,c(Q290)) (Q2411818,P21,c(Q290)) (Q5240930,P21,c(Q290)) (Q3695965,P21,c(Q290)) (Q3938462,P21,c(Q290)) (Q5496529,P21,c(Q290)) (Q18590295,P21,c(Q290)) (Q464467,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q7794958', 'P21', {'concept': 'Q290'}] ['Q1284220', 'P21', {'concept': 'Q290'}] ['Q6232998', 'P21', {'concept': 'Q290'}] ['Q2411818', 'P21', {'concept': 'Q290'}] ['Q5240930', 'P21', {'concept': 'Q290'}] ['Q3695965', 'P21', {'concept': 'Q290'}] ['Q3938462', 'P21', {'concept': 'Q290'}] ['Q5496529', 'P21', {'concept': 'Q290'}] ['Q18590295', 'P21', {'concept': 'Q290'}] ['Q464467', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . ?c property:P21 ?r . VALUES ( ?c ) { ( resource:Q5240930 ) ( resource:Q5240931 ) ( resource:Q2492648 ) } }
Thomas Weir J. Alden Weir John Ferguson Weir Judith Weir David Weir Robert Walter Weir Robert Weir Fred Weir Andy Weir David Weir
action filter_type
action find
entity prev_answer
relation gender
type sex
['Thomas Weir', 'gender', {'concept': 'sex'}] ['J. Alden Weir', 'gender', {'concept': 'sex'}] ['John Ferguson Weir', 'gender', {'concept': 'sex'}] ['Judith Weir', 'gender', {'concept': 'sex'}] ['David Weir', 'gender', {'concept': 'sex'}] ['Robert Walter Weir', 'gender', {'concept': 'sex'}] ['Robert Weir', 'gender', {'concept': 'sex'}] ['Fred Weir', 'gender', {'concept': 'sex'}] ['Andy Weir', 'gender', {'concept': 'sex'}] ['David Weir', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . ?c property:gender ?r . VALUES ( ?c ) { ( resource:David_Weir ) ( resource:David_Weir ) ( resource:Amanda_Weir ) } }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097 Q6581072 Q6581097 Q6581097 Q6581097 Q6581097 Q6581097 Q6581097
(Q7794958,P21,c(Q290)) (Q1284220,P21,c(Q290)) (Q6232998,P21,c(Q290)) (Q2411818,P21,c(Q290)) (Q5240930,P21,c(Q290)) (Q3695965,P21,c(Q290)) (Q3938462,P21,c(Q290)) (Q5496529,P21,c(Q290)) (Q18590295,P21,c(Q290)) (Q464467,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
Those people have a [ANSWER], [ANSWER] and [ANSWER]
['Q7794958', 'P21', {'concept': 'Q290'}] ['Q1284220', 'P21', {'concept': 'Q290'}] ['Q6232998', 'P21', {'concept': 'Q290'}] ['Q2411818', 'P21', {'concept': 'Q290'}] ['Q5240930', 'P21', {'concept': 'Q290'}] ['Q3695965', 'P21', {'concept': 'Q290'}] ['Q3938462', 'P21', {'concept': 'Q290'}] ['Q5496529', 'P21', {'concept': 'Q290'}] ['Q18590295', 'P21', {'concept': 'Q290'}] ['Q464467', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . ?c property:P21 ?r . VALUES ( ?c ) { ( resource:Q5240930 ) ( resource:Q5240931 ) ( resource:Q2492648 ) } }
male male male female male male male male male male
Those people have a male, male and male
male male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Thomas Weir', 'gender', {'concept': 'sex'}] ['J. Alden Weir', 'gender', {'concept': 'sex'}] ['John Ferguson Weir', 'gender', {'concept': 'sex'}] ['Judith Weir', 'gender', {'concept': 'sex'}] ['David Weir', 'gender', {'concept': 'sex'}] ['Robert Walter Weir', 'gender', {'concept': 'sex'}] ['Robert Weir', 'gender', {'concept': 'sex'}] ['Fred Weir', 'gender', {'concept': 'sex'}] ['Andy Weir', 'gender', {'concept': 'sex'}] ['David Weir', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . ?c property:gender ?r . VALUES ( ?c ) { ( resource:David_Weir ) ( resource:David_Weir ) ( resource:Amanda_Weir ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18590295
P166
Q618779
USER
What was awarded to Andy Weir ?
(Q18590295,P166,c(Q618779))
action filter_type
action find
entity Q18590295
relation P166
type Q618779
['Q18590295', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { resource:Q18590295 property:P166 ?u . ?u rdf:type ontology:Q618779 }
Andy Weir
action filter_type
action find
entity Andy Weir
relation award received
type award
['Andy Weir', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { resource:Andy_Weir property:award_received ?u . ?u rdf:type ontology:award }
[]
award
Q958630
SYSTEM
John W. Campbell Award for Best New Writer
Q958630
(Q18590295,P166,c(Q618779))
action filter_type
action find
entity Q18590295
relation P166
type Q618779
The [ANSWER] was awarded to Andy Weir
['Q18590295', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { resource:Q18590295 property:P166 ?u . ?u rdf:type ontology:Q618779 }
John W. Campbell Award for Best New Writer
The John W. Campbell Award for Best New Writer was awarded to Andy Weir
John W. Campbell Award for Best New Writer
action filter_type
action find
entity Andy Weir
relation award received
type award
['Andy Weir', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { resource:Andy_Weir property:award_received ?u . ?u rdf:type ontology:award }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q993777
Q618779
USER
And how about Bruno Schumacher?
(Q993777,P166,c(Q618779))
action filter_type
action find
entity Q993777
relation P166
type Q618779
['Q993777', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q618779 . resource:Q993777 property:P166 ?x }
Bruno Schumacher
action filter_type
action find
entity Bruno Schumacher
relation award received
type award
['Bruno Schumacher', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:award . resource:Bruno_Schumacher property:award_received ?x }
[]
award
Q21164
SYSTEM
Order of Merit of the Federal Republic of Germany
Q21164
(Q993777,P166,c(Q618779))
action filter_type
action find
entity Q993777
relation P166
type Q618779
[ANSWER]
['Q993777', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q618779 . resource:Q993777 property:P166 ?x }
Order of Merit of the Federal Republic of Germany
Order of Merit of the Federal Republic of Germany
action filter_type
action find
entity Bruno Schumacher
relation award received
type award
['Bruno Schumacher', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:award . resource:Bruno_Schumacher property:award_received ?x }
[]