Simple Question (Direct)
Simple Question
Q5962247
P106
Q12737077
USER
Which occupations have Mohammad Nahavandian as his/her 's career ?
(Q5962247,P106,c(Q12737077))
action filter_type
action find
entity Q5962247
relation P106
type Q12737077
['Q5962247', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5962247 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Mohammad Nahavandian
action filter_type
action find
entity Mohammad Nahavandian
relation occupation
type occupation
['Mohammad Nahavandian', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Mohammad_Nahavandian property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q188094 Q82955
SYSTEM
economist, politician
Q188094 Q82955
(Q5962247,P106,c(Q12737077))
action filter_type
action find
entity Q5962247
relation P106
type Q12737077
[ANSWERS]
['Q5962247', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q5962247 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
economist politician
economist politician
action filter_type
action find
entity Mohammad Nahavandian
relation occupation
type occupation
['Mohammad Nahavandian', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Mohammad_Nahavandian property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5962247
P140
Q874405
USER
Which social group does that person relate to ?
(Q188094,P140,c(Q874405)) (Q82955,P140,c(Q874405))
action filter_type
action find
entity Q5962247
relation P140
type Q874405
['Q188094', 'P140', {'concept': 'Q874405'}] ['Q82955', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?w WHERE { resource:Q5962247 property:P140 ?w . ?w rdf:type ontology:Q874405 }
Mohammad Nahavandian
action filter_type
action find
entity Mohammad Nahavandian
relation religion
type social group
['economist', 'religion', {'concept': 'social group'}] ['politician', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?w WHERE { resource:Mohammad_Nahavandian property:religion ?w . ?w rdf:type ontology:social_group }
[]
social group
Q432
SYSTEM
Islam
Q432
(Q188094,P140,c(Q874405)) (Q82955,P140,c(Q874405))
action filter_type
action find
entity Q5962247
relation P140
type Q874405
[ANSWER]
['Q188094', 'P140', {'concept': 'Q874405'}] ['Q82955', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?w WHERE { resource:Q5962247 property:P140 ?w . ?w rdf:type ontology:Q874405 }
Islam
Islam
action filter_type
action find
entity Mohammad Nahavandian
relation religion
type social group
['economist', 'religion', {'concept': 'social group'}] ['politician', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?w WHERE { resource:Mohammad_Nahavandian property:religion ?w . ?w rdf:type ontology:social_group }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q10871364 Q82955
P106
Q502895
USER
Which people have career as politician and baseball player ?
AND((c(Q502895),P106,Q82955), (c(Q502895),P106,Q10871364))
action filter_type
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q10871364
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q82955'], [{'concept': 'Q502895'}, 'P106', 'Q10871364']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P106 resource:Q82955 . ?h property:P106 resource:Q10871364 }
baseball player politician
action filter_type
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity baseball player
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'politician'], [{'concept': 'common name'}, 'occupation', 'baseball player']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:occupation resource:politician . ?h property:occupation resource:baseball_player }
[]
common name
Q7171818 Q883189 Q6490558 Q7109731 Q7199594 Q4664471 Q6669624 Q6241271 Q6708027 Q3082758
SYSTEM
Some of them are Pete Abele, Fred H. Brown, Larry Jackson, Otto Miller, Pius L. Schwert, Akira Shimada, Lon Warneke, John J. Ryan, Lyman Frimodig, Frank Mancuso
Q16011692 Q881641 Q888580 Q7495201 Q1134596 Q11579825 Q4964157 Q652658 Q883189 Q4954423 Q11504735 Q7199594 Q889250 Q1074120 Q6140916 Q6708027 Q11536965 Q16216671 Q3082758 Q11593846 Q5162555 Q11593921 Q5666954 Q16014213 Q4664471 Q3101450 Q4933387 Q888606 Q11591251 Q5622576 Q6119204 Q6685616 Q3177637 Q6669624 Q7331253 Q22959020 Q11391518 Q11652563 Q371148 Q11671348 Q1620262 Q11479062 Q16216591 Q6456259 Q11427382 Q6964780 Q6241271 Q7052019 Q5699791 Q5287015 Q11551146 Q11475092 Q6490558 Q11603466 Q16193682 Q11473072 Q869771 Q4909371 Q311782 Q16091330 Q4014560 Q529550 Q6251591 Q5670503 Q11531191 Q5361568 Q885374 Q16018138 Q11356168 Q5487334 Q5171460 Q11369335 Q5719441 Q11576512 Q5210580 Q7169845 Q7171818 Q573029 Q8020252 Q6166706 Q23505 Q1508023 Q4910062 Q4908786 Q7109731 Q5228713 Q6167205 Q722059 Q918265 Q6913938 Q521145 Q203286 Q2545200 Q3476256 Q2427011 Q934093 Q2165678 Q7819273 Q7335488 Q4952325 Q6392996 Q16107275 Q7099693 Q2134176 Q6397335 Q4797790 Q7964154 Q19518294 Q290890 Q7297344 Q207955 Q11469368
AND((c(Q502895),P106,Q82955), (c(Q502895),P106,Q10871364))
action filter_type
action intersection
action find_reverse
entity Q82955
relation P106
action find_reverse
entity Q10871364
relation P106
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q82955'], [{'concept': 'Q502895'}, 'P106', 'Q10871364']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P106 resource:Q82955 . ?h property:P106 resource:Q10871364 }
Jesse Winters Milward L. Simpson Morgan Bulkeley Sherman Jones Joe Saunders Giichirō Shiraki Brian J. Martin Ed Bailey Fred H. Brown Bradbury Robinson Akira Kusaka Pius L. Schwert John K. Tener Randy Bass Takeshi Nomura Lyman Frimodig Susumu Momoi Judson McMillin Frank Mancuso Ajia Fukumoto Conrad L. Raiford Eisuke Fukunaga Harry Arista Mackey Lantz Womack Akira Shimada George Burns Bob McWhorter Frank Lausche Yasuo Fukui Guy S. Houston Jacob Ruppert Lou Lowdermilk Jesse White Lon Warneke Rick Bosetti David W. Dowd Chikō Yatsunami Keiichi Nagasaki Arthur Pue Gorman Eiichirō Takahashi Hiroo Ishii Kazuto Kawabata Bart Hester L.D. "Buddy" Napper Hidetaka Horiba Nap Rucker John J. Ryan Norman Buchanan Heinie Stafford Doc Adams Takenori Emoto Yoshihiro Iwamoto Larry Jackson Shunryū Tsukiji Bill Kintner Kō Okamoto Bobby Richardson Bill Heckroth Bill Richardson Chester Stranczek Roger Williams Platt Adams John P. Harris Harry LeGore Takizō Matsumoto Takeshi Koba John W. Bricker J. J. Harrington Jun Misawa Frank House Cornelius Van Cott Jirō Kuji Henry Clarke Kenjirō Tamiya Dale Orem Perry McGriff Pete Abele Happy Chandler William Wheaton Jay Hoffman George H. W. Bush George P. Codd Bill McAfee Bill Dodd Otto Miller Dave Edler Jay Sniatkowski Walter Johnson Jim Bunning Morris W. Turner Mario Cuomo Kevin Johnson Wilmer Mizell Scott W. Lucas Thomas S. McMillan Lionel Conacher Ronald M. Mottl Tommy Byrne Rip Collins Boyd Cypert Keo Nakama John DeFrancisco Orange Phelps Raymond Joseph Cannon Kevin Reilly Arthur Alber Walter Ancker Conrad F. Becker Hirohisa Fujii Ray Collins Omar Bradley Kenju Yamamoto
Pete Abele Fred H. Brown Larry Jackson Otto Miller Pius L. Schwert Akira Shimada Lon Warneke John J. Ryan Lyman Frimodig Frank Mancuso
action filter_type
action intersection
action find_reverse
entity politician
relation occupation
action find_reverse
entity baseball player
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'politician'], [{'concept': 'common name'}, 'occupation', 'baseball player']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:occupation resource:politician . ?h property:occupation resource:baseball_player }
[]