Simple Question (Direct)
Simple Question
Q20851223
P1038
Q502895
USER
Who is related to Pierre Bourgeois ?
(Q20851223,P1038,c(Q502895))
action filter_type
action find
entity Q20851223
relation P1038
type Q502895
['Q20851223', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q20851223 property:P1038 ?w }
Pierre Bourgeois
action filter_type
action find
entity Pierre Bourgeois
relation relative
type common name
['Pierre Bourgeois', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Pierre_Bourgeois property:relative ?w }
[]
common name
Q3384145
SYSTEM
Pierre Bourgeois
Q3384145
(Q20851223,P1038,c(Q502895))
action filter_type
action find
entity Q20851223
relation P1038
type Q502895
The [ANSWER] is related to [ANSWER]
['Q20851223', 'P1038', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . resource:Q20851223 property:P1038 ?w }
Pierre Bourgeois
The Pierre Bourgeois is related to Pierre Bourgeois
Pierre Bourgeois
action filter_type
action find
entity Pierre Bourgeois
relation relative
type common name
['Pierre Bourgeois', 'relative', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . resource:Pierre_Bourgeois property:relative ?w }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20851223
P22
Q502895
USER
Which people have Pierre Bourgeois as dad ?
(c(Q502895),P22,Q20851223)
action filter_type
action find_reverse
entity Q20851223
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q20851223']
SELECT DISTINCT ?y WHERE { ?y property:P22 resource:Q20851223 . ?y rdf:type ontology:Q502895 }
Pierre Bourgeois
action filter_type
action find_reverse
entity Pierre Bourgeois
relation father
type common name
[{'concept': 'common name'}, 'father', 'Pierre Bourgeois']
SELECT DISTINCT ?y WHERE { ?y property:father resource:Pierre_Bourgeois . ?y rdf:type ontology:common_name }
[]
common name
Q20751618 Q20751619 Q15970117
SYSTEM
Charles Bourgeois, Edmond Bourgeois, Henri Bourgeois
Q20751618 Q20751619 Q15970117
(c(Q502895),P22,Q20851223)
action filter_type
action find_reverse
entity Q20851223
relation P22
type Q502895
[ANSWERS] have Pierre Bourgeois as dad
[{'concept': 'Q502895'}, 'P22', 'Q20851223']
SELECT DISTINCT ?y WHERE { ?y property:P22 resource:Q20851223 . ?y rdf:type ontology:Q502895 }
Charles Bourgeois Edmond Bourgeois Henri Bourgeois
Charles Bourgeois, Edmond Bourgeois and Henri Bourgeois have Pierre Bourgeois as dad
Charles Bourgeois Edmond Bourgeois Henri Bourgeois
action filter_type
action find_reverse
entity Pierre Bourgeois
relation father
type common name
[{'concept': 'common name'}, 'father', 'Pierre Bourgeois']
SELECT DISTINCT ?y WHERE { ?y property:father resource:Pierre_Bourgeois . ?y rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q20751618
P734
Q82799
USER
Who is associated with that person ?
(Q20751618,P734,c(Q82799))
action filter_type
action find
entity Q20751618
relation P734
type Q82799
['Q20751618', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q20751618 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Charles Bourgeois
action filter_type
action find
entity Charles Bourgeois
relation family name
type name
['Charles Bourgeois', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Charles_Bourgeois property:family_name ?y . ?y rdf:type ontology:name }
[]
name
Clarification for simple ques.
Q20751619
SYSTEM
Did you mean Edmond Bourgeois ?
Q20751618 Q20751619 Q15970117
(Q20751618,P734,c(Q82799)) (Q20751619,P734,c(Q82799)) (Q15970117,P734,c(Q82799))
[ANSWER]
['Q20751618', 'P734', {'concept': 'Q82799'}] ['Q20751619', 'P734', {'concept': 'Q82799'}] ['Q15970117', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q20751618 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Charles Bourgeois Edmond Bourgeois Henri Bourgeois
Did you mean Edmond Bourgeois ?
Edmond Bourgeois
['Charles Bourgeois', 'family name', {'concept': 'name'}] ['Edmond Bourgeois', 'family name', {'concept': 'name'}] ['Henri Bourgeois', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Charles_Bourgeois property:family_name ?y . ?y rdf:type ontology:name }
[]
Simple Question (Coreferenced)
USER
No, I meant Charles Bourgeois. Could you tell me the answer for that?
(Q20751618,P734,c(Q82799))
Q20751618
['Q20751618', 'P734', {'concept': 'Q82799'}]
['Charles Bourgeois', 'family name', {'concept': 'name'}]
[]
Q16860299
SYSTEM
Bourgeois
Q16860299
(Q20751618,P734,c(Q82799))
action filter_type
action find
entity Q20751618
relation P734
type Q82799
[ANSWER] is associated with that person
['Q20751618', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q20751618 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Bourgeois
Bourgeois is associated with that person
Bourgeois
action filter_type
action find
entity Charles Bourgeois
relation family name
type name
['Charles Bourgeois', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Charles_Bourgeois property:family_name ?y . ?y rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q844872 Q20851223
P40 P1346
Q502895
USER
Which people are an offsprings of Pierre Bourgeois or won Hughes Medal ?
OR((Q20851223,P40,c(Q502895)), (Q844872,P1346,c(Q502895)))
action filter_type
action union
action find
entity Q20851223
relation P40
action find
entity Q844872
relation P1346
type Q502895
{'OR': [['Q20851223', 'P40', {'concept': 'Q502895'}], ['Q844872', 'P1346', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q20851223 property:P40 ?u } UNION { resource:Q844872 property:P1346 ?u } } . ?u rdf:type ontology:Q502895 }
Hughes Medal Pierre Bourgeois
action filter_type
action union
action find
entity Pierre Bourgeois
relation child
action find
entity Hughes Medal
relation winner
type common name
{'OR': [['Pierre Bourgeois', 'child', {'concept': 'common name'}], ['Hughes Medal', 'winner', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Pierre_Bourgeois property:child ?u } UNION { resource:Hughes_Medal property:winner ?u } } . ?u rdf:type ontology:common_name }
[]
common name
Q2090647 Q384802 Q912921 Q1928860 Q153717 Q1193089 Q169577 Q189990 Q556185 Q60347
SYSTEM
Some of them are Joseph Lade Pawsey, Keith Moffatt, Brian Pippard, Michael Pepper, Freeman Dyson, Robert Williams, Ernest Lawrence, Antony Hewish, Michael Kelly, Walter H. Schottky
Q74948 Q15970117 Q1928860 Q725836 Q8006946 Q28189 Q810043 Q34286 Q183631 Q504921 Q104104 Q556185 Q5231203 Q727443 Q178103 Q2149592 Q742634 Q556176 Q133846 Q130975 Q169330 Q1193089 Q959840 Q5486426 Q61433 Q2090647 Q1261309 Q1349783 Q1190053 Q60429 Q674299 Q1645453 Q1932238 Q1388645 Q5540968 Q153194 Q2074635 Q364619 Q1793865 Q370077 Q238798 Q150989 Q60428 Q335593 Q102291 Q16846988 Q8753 Q58978 Q192112 Q1356371 Q189485 Q7174049 Q555849 Q131729 Q4757698 Q10965724 Q80884 Q15052128 Q1245715 Q714360 Q633190 Q1248892 Q912921 Q153717 Q1176634 Q7085 Q1701707 Q162900 Q17714 Q169577 Q354856 Q3460851 Q17522 Q948019 Q5076238 Q301125 Q512284 Q451225 Q62897 Q1507296 Q728463 Q315422 Q2156753 Q128823 Q1586143 Q261269 Q384802 Q1343336 Q18443 Q559794 Q181363 Q25320 Q926167 Q2086139 Q1909533 Q57189 Q20751618 Q1382109 Q127944 Q562886 Q1377224 Q742511 Q1928044 Q170741 Q47285 Q133222 Q1629187 Q189990 Q900745 Q160522 Q1293111 Q342591 Q190766 Q184286 Q60347 Q1665938
OR((Q20851223,P40,c(Q502895)), (Q844872,P1346,c(Q502895)))
action filter_type
action union
action find
entity Q20851223
relation P40
action find
entity Q844872
relation P1346
type Q502895
[ANSWERS] are an offsprings of Pierre Bourgeois or won Hughes Medal
{'OR': [['Q20851223', 'P40', {'concept': 'Q502895'}], ['Q844872', 'P1346', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q20851223 property:P40 ?u } UNION { resource:Q844872 property:P1346 ?u } } . ?u rdf:type ontology:Q502895 }
David Buckingham Henri Bourgeois Michael Pepper M. J. Seaton William Cochran Abdus Salam Basil Schonland Alexander Graham Bell Ernest Walton Henry Jackson Andre Geim Michael Kelly David Bates Mark Oliphant C. F. Powell Richard Glazebrook Augusto Righi Alexander Boksenberg George Paget Thomson Robert A. Millikan Owen Willans Richardson Robert Williams Roy Kerr Frank Edward Smith Eugen Goldstein Joseph Lade Pawsey Drummond Matthews John Pethica Denys Wilkinson C. V. Raman William D. Coolidge John Turton Randall Robert Hanbury Brown Thomas George Cowling George Isaak Edward Victor Appleton Peter Edwards John Clive Ward Kurt Mendelssohn John Stewart Bell Frederic Calland Williams Frédéric Joliot-Curie Johann Wilhelm Hittorf Frederick Lindemann, 1st Viscount Cherwell Francis William Aston Henning Sirringhaus Enrico Fermi Max Born Peter Higgs Ernest Howard Griffiths Nevill Francis Mott Peter Fowler John Clarke William Lawrence Bragg Andrew Lang Joseph Proudman James Chadwick Francis Farley Raymond Hide Artur Ekert Archibald Howie C. N. R. Rao Brian Pippard Freeman Dyson David Shoenberg Niels Bohr John Sealy Townsend Charles Thomson Rees Wilson Stephen Hawking Ernest Lawrence Richard Dalitz Brebis Bleaney Hertha Marks Ayrton Frederick Vine Charles Chree Nicholas Kurti Michele Dougherty Hans Kramers John Cockcroft George Efstathiou Alan Cottrell Joseph Swan Robert G. Chambers John Ambrose Fleming Harrie Massey Edward Bullard Keith Moffatt William Duddell Maurice de Broglie Elihu Thomson Brian David Josephson Paul Langevin Tom Kibble Philip Dee Matthew Rosseinsky Hans Geiger Charles Bourgeois Nicholas Kemmer Arthur Compton Michael Woolfson Philip Burton Moon Alexander Dalgarno M. J. Whelan Manne Siegbahn J. J. Thomson Clinton Davisson Peter Hirsch Antony Hewish George Finch Charles Glover Barkla Edward Andrade Robert Watson-Watt Martin Ryle Irving Langmuir Walter H. Schottky Tony Skyrme
Joseph Lade Pawsey, Keith Moffatt, Brian Pippard, Michael Pepper, Freeman Dyson, Robert Williams, Ernest Lawrence, Antony Hewish, Michael Kelly and Walter H. Schottky are an offsprings of Pierre Bourgeois or won Hughes Medal
Joseph Lade Pawsey Keith Moffatt Brian Pippard Michael Pepper Freeman Dyson Robert Williams Ernest Lawrence Antony Hewish Michael Kelly Walter H. Schottky
action filter_type
action union
action find
entity Pierre Bourgeois
relation child
action find
entity Hughes Medal
relation winner
type common name
{'OR': [['Pierre Bourgeois', 'child', {'concept': 'common name'}], ['Hughes Medal', 'winner', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Pierre_Bourgeois property:child ?u } UNION { resource:Hughes_Medal property:winner ?u } } . ?u rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q169577
P69
Q163740
USER
How many nonprofit organizations are the alma mater of Ernest Lawrence ?
(Q169577,P69,c(Q163740))
action count
action filter_type
action find
entity Q169577
relation P69
type Q163740
['Q169577', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Q169577 property:P69 ?p . ?p rdf:type ontology:Q163740 }
Ernest Lawrence
action count
action filter_type
action find
entity Ernest Lawrence
relation educated at
type nonprofit organization
['Ernest Lawrence', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Ernest_Lawrence property:educated_at ?p . ?p rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
SYSTEM
2
Q131252 Q49112
(Q169577,P69,c(Q163740))
action count
action filter_type
action find
entity Q169577
relation P69
type Q163740
[ANSWER]
['Q169577', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Q169577 property:P69 ?p . ?p rdf:type ontology:Q163740 }
University of Chicago Yale University
2
action count
action filter_type
action find
entity Ernest Lawrence
relation educated at
type nonprofit organization
['Ernest Lawrence', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Ernest_Lawrence property:educated_at ?p . ?p rdf:type ontology:nonprofit_organization }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q3048622
Q163740
USER
And how about Edward M. Kennedy, Jr.?
(Q3048622,P69,c(Q163740))
action count
action filter_type
action find
entity Q3048622
relation P69
type Q163740
['Q3048622', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { resource:Q3048622 property:P69 ?d . ?d rdf:type ontology:Q163740 }
Edward M. Kennedy, Jr.
action count
action filter_type
action find
entity Edward M. Kennedy, Jr.
relation educated at
type nonprofit organization
['Edward M. Kennedy, Jr.', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { resource:Edward_M._Kennedy,_Jr. property:educated_at ?d . ?d rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
SYSTEM
2
(Q3048622,P69,c(Q163740))
action count
action filter_type
action find
entity Q3048622
relation P69
type Q163740
[ANSWER]
['Q3048622', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { resource:Q3048622 property:P69 ?d . ?d rdf:type ontology:Q163740 }
2
action count
action filter_type
action find
entity Edward M. Kennedy, Jr.
relation educated at
type nonprofit organization
['Edward M. Kennedy, Jr.', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?a ) WHERE { resource:Edward_M._Kennedy,_Jr. property:educated_at ?d . ?d rdf:type ontology:nonprofit_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3048622
P7
Q502895
USER
Who are siblings of that one ?
action filter_type
action find_reverse
entity Q3048622
relation P7
type Q502895
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P7 resource:Q3048622 }
Edward M. Kennedy, Jr.
action filter_type
action find_reverse
entity Edward M. Kennedy, Jr.
relation brother
type common name
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:brother resource:Edward_M._Kennedy,_Jr. }
[]
common name
Q2383370 Q948920
SYSTEM
Kara Kennedy, Patrick J. Kennedy
Q2383370 Q948920
action filter_type
action find_reverse
entity Q3048622
relation P7
type Q502895
Siblings of that one are the [ANSWERS]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . ?b property:P7 resource:Q3048622 }
Kara Kennedy Patrick J. Kennedy
Siblings of that one are the Kara Kennedy and Patrick J. Kennedy
Kara Kennedy Patrick J. Kennedy
action filter_type
action find_reverse
entity Edward M. Kennedy, Jr.
relation brother
type common name
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . ?b property:brother resource:Edward_M._Kennedy,_Jr. }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2275664
P725
Q502895 Q15416
USER
How many television programs have been dubbed by less number of people than Kim Possible: A Sitch in Time ?
(c(Q15416),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q15416
type Q502895
action count
action filter_type
action find
entity Q2275664
relation P725
type Q502895
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?l ) WHERE { ?a property:P725 ?z . ?a rdf:type ontology:Q15416 . ?z rdf:type ontology:Q502895 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q2275664 property:P725 ?s . ?s rdf:type ontology:Q502895 } } . FILTER ( ?l < ?r ) }
Kim Possible: A Sitch in Time
action count
action less
action find_tuple_counts
relation voice actor
type television program
type common name
action count
action filter_type
action find
entity Kim Possible: A Sitch in Time
relation voice actor
type common name
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?l ) WHERE { ?a property:voice_actor ?z . ?a rdf:type ontology:television_program . ?z rdf:type ontology:common_name } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Kim_Possible:_A_Sitch_in_Time property:voice_actor ?s . ?s rdf:type ontology:common_name } } . FILTER ( ?l < ?r ) }
[]
common name television program
SYSTEM
60
Q1280574 Q4049303 Q715723 Q1135343 Q613823 Q239937 Q1857269 Q1195326 Q5227700 Q4773554 Q4120156 Q962161 Q1617715 Q696310 Q15176855 Q472309 Q2573191 Q2581704 Q917980 Q3547706 Q845452 Q307507 Q483943 Q3106852 Q25059 Q1284240 Q14493917 Q749629 Q10913555 Q1315951 Q1361413 Q128969 Q2455207 Q2452999 Q702039 Q7496805 Q699760 Q1146803 Q2140751 Q4033639 Q1640364 Q483106 Q3098248 Q633432 Q12019559 Q1072208 Q304290 Q1215573 Q2619211 Q1140254 Q1317932 Q5139461 Q430369 Q1494222 Q452374 Q2339582 Q15039539 Q5976198 Q1353486 Q45035
(c(Q15416),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q15416
type Q502895
action count
action filter_type
action find
entity Q2275664
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q15416'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?l ) WHERE { ?a property:P725 ?z . ?a rdf:type ontology:Q15416 . ?z rdf:type ontology:Q502895 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Q2275664 property:P725 ?s . ?s rdf:type ontology:Q502895 } } . FILTER ( ?l < ?r ) }
The Adventures of Tweeny Witches Seraphim Call Urusei Yatsura Wish Upon the Pleiades Ghost Hound Pokémon Rio: Rainbow Gate! LOG HORIZON Tenchi in Tokyo Mi cola D.I.C.E. Eureka Seven The Wonderful Galaxy of Oz Hamtaro Wizard Barristers: Benmashi Cecil Princess of Thieves Onegai My Melody Willo the Wisp Witch Hunter Robin Uchūsen Sagittarius Project Blue Earth SOS H2O: Footprints in the Sand Anohana: The Flower We Saw That Day Todd McFarlane's Spawn Penguin Drum Burst Angel Galileo Donna Kid vs. Kat The Melancholy of Haruhi Suzumiya Psycho-Pass Night Raid 1931 Calimero Mnemosyne Remi, Nobody's Girl The Story of Pollyanna, Girl of Love Shima Shima Tora no Shimajirō Saiyuki Cuéntame cómo pasó Boogiepop Phantom Akahori Gedou Hour Rabuge Wild Arms: Twilight Venom Freezing Stratos 4 The Emperor's New School Free! The Wonderful Adventures of Nils Rugrats The Proud Family Tsuritama Transformers: Animated Negima!? Engage Planet Kiss Dum The Critic Garfield in the Rough Ah My Buddha Trapp Family Story The Steamboat Adventures of Riverboat Bill I Am the Greatest: The Adventures of Muhammad Ali Marumo no Okite Renkin 3-kyū Magical? Pokān
60
action count
action less
action find_tuple_counts
relation voice actor
type television program
type common name
action count
action filter_type
action find
entity Kim Possible: A Sitch in Time
relation voice actor
type common name
[{'concept': 'television program'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?k ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?z ) AS ?l ) WHERE { ?a property:voice_actor ?z . ?a rdf:type ontology:television_program . ?z rdf:type ontology:common_name } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { resource:Kim_Possible:_A_Sitch_in_Time property:voice_actor ?s . ?s rdf:type ontology:common_name } } . FILTER ( ?l < ?r ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can around 3771 people perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3771
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?b = 3771 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3771
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?b = 3771 ) }
[]
musical instrument common name
SYSTEM
2
Q8355 Q1444
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3771
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?b = 3771 ) }
violin organ
2
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3771
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?n ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?b ) WHERE { ?i property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?b = 3771 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q169577
P184
Q502895
USER
Who have Ernest Lawrence as doctor advisor ?
(c(Q502895),P184,Q169577)
action filter_type
action find_reverse
entity Q169577
relation P184
type Q502895
[{'concept': 'Q502895'}, 'P184', 'Q169577']
SELECT DISTINCT ?l WHERE { ?l property:P184 resource:Q169577 . ?l rdf:type ontology:Q502895 }
Ernest Lawrence
action filter_type
action find_reverse
entity Ernest Lawrence
relation doctoral advisor
type common name
[{'concept': 'common name'}, 'doctoral advisor', 'Ernest Lawrence']
SELECT DISTINCT ?l WHERE { ?l property:doctoral_advisor resource:Ernest_Lawrence . ?l rdf:type ontology:common_name }
[]
common name
Q450317 Q705994 Q325496
SYSTEM
Chien-Shiung Wu, Robert R. Wilson, M. Stanley Livingston
Q963428 Q450317 Q325496 Q705994
(c(Q502895),P184,Q169577)
action filter_type
action find_reverse
entity Q169577
relation P184
type Q502895
[ANSWERS] have Ernest Lawrence as doctor advisor
[{'concept': 'Q502895'}, 'P184', 'Q169577']
SELECT DISTINCT ?l WHERE { ?l property:P184 resource:Q169577 . ?l rdf:type ontology:Q502895 }
Kenneth Ross MacKenzie Chien-Shiung Wu M. Stanley Livingston Robert R. Wilson
Chien-Shiung Wu, Robert R. Wilson and M. Stanley Livingston have Ernest Lawrence as doctor advisor
Chien-Shiung Wu Robert R. Wilson M. Stanley Livingston
action filter_type
action find_reverse
entity Ernest Lawrence
relation doctoral advisor
type common name
[{'concept': 'common name'}, 'doctoral advisor', 'Ernest Lawrence']
SELECT DISTINCT ?l WHERE { ?l property:doctoral_advisor resource:Ernest_Lawrence . ?l rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q450317
P463
Q811430
USER
Which organization was that person a member of ?
(Q450317,P463,c(Q811430))
action filter_type
action find
entity Q450317
relation P463
type Q811430
['Q450317', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?j WHERE { resource:Q450317 property:P463 ?j . ?j rdf:type ontology:Q811430 }
Chien-Shiung Wu
action filter_type
action find
entity Chien-Shiung Wu
relation member of
type construction
['Chien-Shiung Wu', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?j WHERE { resource:Chien-Shiung_Wu property:member_of ?j . ?j rdf:type ontology:construction }
[]
construction
Clarification for simple ques.
Q450317
SYSTEM
Did you mean Chien-Shiung Wu ?
Q450317 Q705994 Q325496
(Q450317,P463,c(Q811430)) (Q705994,P463,c(Q811430)) (Q325496,P463,c(Q811430))
[ANSWER]
['Q450317', 'P463', {'concept': 'Q811430'}] ['Q705994', 'P463', {'concept': 'Q811430'}] ['Q325496', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?j WHERE { resource:Q450317 property:P463 ?j . ?j rdf:type ontology:Q811430 }
Chien-Shiung Wu Robert R. Wilson M. Stanley Livingston
Did you mean Chien-Shiung Wu ?
Chien-Shiung Wu
['Chien-Shiung Wu', 'member of', {'concept': 'construction'}] ['Robert R. Wilson', 'member of', {'concept': 'construction'}] ['M. Stanley Livingston', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?j WHERE { resource:Chien-Shiung_Wu property:member_of ?j . ?j rdf:type ontology:construction }
[]
Simple Question (Coreferenced)
USER
Yes
(Q450317,P463,c(Q811430))
['Q450317', 'P463', {'concept': 'Q811430'}]
['Chien-Shiung Wu', 'member of', {'concept': 'construction'}]
[]
Q463303
SYSTEM
American Academy of Arts and Sciences
Q463303
(Q450317,P463,c(Q811430))
action filter_type
action find
entity Q450317
relation P463
type Q811430
[ANSWER] was that person a member of
['Q450317', 'P463', {'concept': 'Q811430'}]
SELECT DISTINCT ?j WHERE { resource:Q450317 property:P463 ?j . ?j rdf:type ontology:Q811430 }
American Academy of Arts and Sciences
American Academy of Arts and Sciences was that person a member of
American Academy of Arts and Sciences
action filter_type
action find
entity Chien-Shiung Wu
relation member of
type construction
['Chien-Shiung Wu', 'member of', {'concept': 'construction'}]
SELECT DISTINCT ?j WHERE { resource:Chien-Shiung_Wu property:member_of ?j . ?j rdf:type ontology:construction }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q26699359 Q2090647
P27 P1001
Q1048835
USER
Which political territories are Joseph Lade Pawsey a civilian of or apply to jurisdiction of mayor of Medina-Sidonia ?
OR((Q2090647,P27,c(Q1048835)), (Q26699359,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q2090647
relation P27
action find
entity Q26699359
relation P1001
type Q1048835
{'OR': [['Q2090647', 'P27', {'concept': 'Q1048835'}], ['Q26699359', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q2090647 property:P27 ?j } UNION { resource:Q26699359 property:P1001 ?j } } . ?j rdf:type ontology:Q1048835 }
mayor of Medina-Sidonia Joseph Lade Pawsey
action filter_type
action union
action find
entity Joseph Lade Pawsey
relation country of citizenship
action find
entity mayor of Medina-Sidonia
relation applies to jurisdiction
type political territorial entity
{'OR': [['Joseph Lade Pawsey', 'country of citizenship', {'concept': 'political territorial entity'}], ['mayor of Medina-Sidonia', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Joseph_Lade_Pawsey property:country_of_citizenship ?j } UNION { resource:mayor_of_Medina-Sidonia property:applies_to_jurisdiction ?j } } . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q642200
SYSTEM
Australia, Medina-Sidonia
Q408 Q642200
OR((Q2090647,P27,c(Q1048835)), (Q26699359,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q2090647
relation P27
action find
entity Q26699359
relation P1001
type Q1048835
[ANSWERS] are Joseph Lade Pawsey a civilian of or apply to jurisdiction of mayor of Medina-Sidonia
{'OR': [['Q2090647', 'P27', {'concept': 'Q1048835'}], ['Q26699359', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q2090647 property:P27 ?j } UNION { resource:Q26699359 property:P1001 ?j } } . ?j rdf:type ontology:Q1048835 }
Australia Medina-Sidonia
Australia and Medina-Sidonia are Joseph Lade Pawsey a civilian of or apply to jurisdiction of mayor of Medina-Sidonia
Australia Medina-Sidonia
action filter_type
action union
action find
entity Joseph Lade Pawsey
relation country of citizenship
action find
entity mayor of Medina-Sidonia
relation applies to jurisdiction
type political territorial entity
{'OR': [['Joseph Lade Pawsey', 'country of citizenship', {'concept': 'political territorial entity'}], ['mayor of Medina-Sidonia', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Joseph_Lade_Pawsey property:country_of_citizenship ?j } UNION { resource:mayor_of_Medina-Sidonia property:applies_to_jurisdiction ?j } } . ?j rdf:type ontology:political_territorial_entity }
[]