Simple Question (Direct)
Simple Question
Q6383677
P106
Q12737077
USER
What are the job of Keiko Ihara ?
(Q6383677,P106,c(Q12737077))
action filter_type
action find
entity Q6383677
relation P106
type Q12737077
['Q6383677', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q6383677 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Keiko Ihara
action filter_type
action find
entity Keiko Ihara
relation occupation
type occupation
['Keiko Ihara', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Keiko_Ihara property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q378622 Q112040
SYSTEM
racing driver, race queen
Q378622 Q112040
(Q6383677,P106,c(Q12737077))
action filter_type
action find
entity Q6383677
relation P106
type Q12737077
The job of Keiko Ihara are the [ANSWERS]
['Q6383677', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q6383677 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
racing driver race queen
The job of Keiko Ihara are the racing driver and race queen
racing driver race queen
action filter_type
action find
entity Keiko Ihara
relation occupation
type occupation
['Keiko Ihara', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Keiko_Ihara property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6383677
P21
Q290
USER
Which sex does Keiko Ihara have ?
(Q6383677,P21,c(Q290))
action filter_type
action find
entity Q6383677
relation P21
type Q290
['Q6383677', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q6383677 property:P21 ?m . ?m rdf:type ontology:Q290 }
Keiko Ihara
action filter_type
action find
entity Keiko Ihara
relation gender
type sex
['Keiko Ihara', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Keiko_Ihara property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q6383677,P21,c(Q290))
action filter_type
action find
entity Q6383677
relation P21
type Q290
Keiko Ihara has a [ANSWER]
['Q6383677', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q6383677 property:P21 ?m . ?m rdf:type ontology:Q290 }
female
Keiko Ihara has a female
female
action filter_type
action find
entity Keiko Ihara
relation gender
type sex
['Keiko Ihara', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Keiko_Ihara property:gender ?m . ?m rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6383677
P734
Q82799
USER
Which name is associated with that person ?
(Q6581072,P734,c(Q82799))
action filter_type
action find
entity Q6383677
relation P734
type Q82799
['Q6581072', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q6383677 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Keiko Ihara
action filter_type
action find
entity Keiko Ihara
relation family name
type name
['female', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Keiko_Ihara property:family_name ?t . ?t rdf:type ontology:name }
[]
name
Q23600458
SYSTEM
Ihara
Q23600458
(Q6581072,P734,c(Q82799))
action filter_type
action find
entity Q6383677
relation P734
type Q82799
[ANSWER] is associated with that person
['Q6581072', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q6383677 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Ihara
Ihara is associated with that person
Ihara
action filter_type
action find
entity Keiko Ihara
relation family name
type name
['female', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Keiko_Ihara property:family_name ?t . ?t rdf:type ontology:name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q23600458 Q13562480
P734
Q502895
USER
Does Myrth York have that one as family name ?
(Q13562480,P734,Q23600458)
action is_in
entity Q13562480
action find
entity Q23600458
relation P734
['Q13562480', 'P734', 'Q23600458']
ASK WHERE { resource:Q23600458 property:P734 resource:Q13562480 }
Ihara Myrth York
action is_in
entity Myrth York
action find
entity Ihara
relation family name
['Myrth York', 'family name', 'Ihara']
ASK WHERE { resource:Ihara property:family_name resource:Myrth_York }
[]
common name
SYSTEM
NO
(Q13562480,P734,Q23600458)
action is_in
entity Q13562480
action find
entity Q23600458
relation P734
[ANSWER]
['Q13562480', 'P734', 'Q23600458']
ASK WHERE { resource:Q23600458 property:P734 resource:Q13562480 }
No
action is_in
entity Myrth York
action find
entity Ihara
relation family name
['Myrth York', 'family name', 'Ihara']
ASK WHERE { resource:Ihara property:family_name resource:Myrth_York }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11522436 Q6383677
P19
Q56061
USER
Which administrative territories were Keiko Ihara or Yi, Yŏng-hŭi, 1931- born in ?
OR((Q6383677,P19,c(Q56061)), (Q11522436,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6383677
relation P19
action find
entity Q11522436
relation P19
type Q56061
{'OR': [['Q6383677', 'P19', {'concept': 'Q56061'}], ['Q11522436', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { ?y property:P19 ?w . VALUES ( ?y ) { ( resource:Q6383677 ) ( resource:Q11522436 ) } } . ?w rdf:type ontology:Q56061 }
Yi, Yŏng-hŭi, 1931- Keiko Ihara
action filter_type
action union
action find
entity Keiko Ihara
relation place of birth
action find
entity Yi, Yŏng-hŭi, 1931-
relation place of birth
type administrative territorial entity
{'OR': [['Keiko Ihara', 'place of birth', {'concept': 'administrative territorial entity'}], ['Yi, Yŏng-hŭi, 1931-', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?y property:place_of_birth ?w . VALUES ( ?y ) { ( resource:Keiko_Ihara ) ( resource:Yi,_Yŏng-hŭi,_1931- ) } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490
SYSTEM
Tokyo
Q1490
OR((Q6383677,P19,c(Q56061)), (Q11522436,P19,c(Q56061)))
action filter_type
action union
action find
entity Q6383677
relation P19
action find
entity Q11522436
relation P19
type Q56061
[ANSWER] was Keiko Ihara or Yi, Yŏng-hŭi, 1931- born in
{'OR': [['Q6383677', 'P19', {'concept': 'Q56061'}], ['Q11522436', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { ?y property:P19 ?w . VALUES ( ?y ) { ( resource:Q6383677 ) ( resource:Q11522436 ) } } . ?w rdf:type ontology:Q56061 }
Tokyo
Tokyo was Keiko Ihara or Yi, Yŏng-hŭi, 1931- born in
Tokyo
action filter_type
action union
action find
entity Keiko Ihara
relation place of birth
action find
entity Yi, Yŏng-hŭi, 1931-
relation place of birth
type administrative territorial entity
{'OR': [['Keiko Ihara', 'place of birth', {'concept': 'administrative territorial entity'}], ['Yi, Yŏng-hŭi, 1931-', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { ?y property:place_of_birth ?w . VALUES ( ?y ) { ( resource:Keiko_Ihara ) ( resource:Yi,_Yŏng-hŭi,_1931- ) } } . ?w rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1490 Q198206 Q5137178
P190
Q56061
USER
Is Tokyo partner town of Shakhty and Clytha ?
(Q1490,P190,Q198206) (Q1490,P190,Q5137178)
action is_in
entity Q1490
action intersection
action find_reverse
entity Q198206
relation P190
action find_reverse
entity Q5137178
relation P190
['Q1490', 'P190', 'Q198206'] ['Q1490', 'P190', 'Q5137178']
ASK WHERE { resource:Q1490 property:P190 resource:Q198206 . resource:Q1490 property:P190 resource:Q5137178 }
Tokyo Shakhty Clytha
action is_in
entity Tokyo
action intersection
action find_reverse
entity Shakhty
relation sister city
action find_reverse
entity Clytha
relation sister city
['Tokyo', 'sister city', 'Shakhty'] ['Tokyo', 'sister city', 'Clytha']
ASK WHERE { resource:Tokyo property:sister_city resource:Shakhty . resource:Tokyo property:sister_city resource:Clytha }
[]
administrative territorial entity
SYSTEM
NO
(Q1490,P190,Q198206) (Q1490,P190,Q5137178)
action is_in
entity Q1490
action intersection
action find_reverse
entity Q198206
relation P190
action find_reverse
entity Q5137178
relation P190
[ANSWER]
['Q1490', 'P190', 'Q198206'] ['Q1490', 'P190', 'Q5137178']
ASK WHERE { resource:Q1490 property:P190 resource:Q198206 . resource:Q1490 property:P190 resource:Q5137178 }
No
action is_in
entity Tokyo
action intersection
action find_reverse
entity Shakhty
relation sister city
action find_reverse
entity Clytha
relation sister city
['Tokyo', 'sister city', 'Shakhty'] ['Tokyo', 'sister city', 'Clytha']
ASK WHERE { resource:Tokyo property:sister_city resource:Shakhty . resource:Tokyo property:sister_city resource:Clytha }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1490
P36
Q15617994 Q3024240
USER
How many administrative territories or former countries have Tokyo as their capital ?
(c(Q15617994),P36,Q1490) (c(Q3024240),P36,Q1490)
action count
action union
action filter_type
action find_reverse
entity Q1490
relation P36
type Q15617994
action filter_type
action find_reverse
entity Q1490
relation P36
type Q3024240
[{'concept': 'Q15617994'}, 'P36', 'Q1490'] [{'concept': 'Q3024240'}, 'P36', 'Q1490']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v rdf:type ontology:Q15617994 . ?v property:P36 resource:Q1490 } UNION { ?v property:P36 resource:Q1490 . ?v rdf:type ontology:Q3024240 } }
Tokyo
action count
action union
action filter_type
action find_reverse
entity Tokyo
relation capital
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Tokyo
relation capital
type former country
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Tokyo'] [{'concept': 'former country'}, 'capital', 'Tokyo']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:capital resource:Tokyo } UNION { ?v property:capital resource:Tokyo . ?v rdf:type ontology:former_country } }
[]
designation for an administrative territorial entity former country
SYSTEM
2
Q17 Q188712
(c(Q15617994),P36,Q1490) (c(Q3024240),P36,Q1490)
action count
action union
action filter_type
action find_reverse
entity Q1490
relation P36
type Q15617994
action filter_type
action find_reverse
entity Q1490
relation P36
type Q3024240
[ANSWER]
[{'concept': 'Q15617994'}, 'P36', 'Q1490'] [{'concept': 'Q3024240'}, 'P36', 'Q1490']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v rdf:type ontology:Q15617994 . ?v property:P36 resource:Q1490 } UNION { ?v property:P36 resource:Q1490 . ?v rdf:type ontology:Q3024240 } }
Japan Empire of Japan
2
action count
action union
action filter_type
action find_reverse
entity Tokyo
relation capital
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Tokyo
relation capital
type former country
[{'concept': 'designation for an administrative territorial entity'}, 'capital', 'Tokyo'] [{'concept': 'former country'}, 'capital', 'Tokyo']
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v property:capital resource:Tokyo } UNION { ?v property:capital resource:Tokyo . ?v rdf:type ontology:former_country } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6383677
P27
Q15617994
USER
Which administrative territory is Keiko Ihara an inhabitant of ?
(Q6383677,P27,c(Q15617994))
action filter_type
action find
entity Q6383677
relation P27
type Q15617994
['Q6383677', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q6383677 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Keiko Ihara
action filter_type
action find
entity Keiko Ihara
relation country of citizenship
type designation for an administrative territorial entity
['Keiko Ihara', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Keiko_Ihara property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q6383677,P27,c(Q15617994))
action filter_type
action find
entity Q6383677
relation P27
type Q15617994
The [ANSWER] is Keiko Ihara an inhabitant of
['Q6383677', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q6383677 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Japan
The Japan is Keiko Ihara an inhabitant of
Japan
action filter_type
action find
entity Keiko Ihara
relation country of citizenship
type designation for an administrative territorial entity
['Keiko Ihara', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Keiko_Ihara property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q131524
P921
Q12737077 Q838948 Q386724
USER
How many occupations were the main subjects in the work around the same number of works of art and works as entrepreneur ?
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q131524
relation P921
type Q838948
type Q386724
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?c WHERE { { ?c rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q838948 . ?x property:P921 ?c } UNION { ?x property:P921 ?c . ?c rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q386724 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:P921 resource:Q131524 . { { ?m rdf:type ontology:Q838948 } UNION { ?m rdf:type ontology:Q386724 } } } } . FILTER ( ?s = ?d ) }
entrepreneur
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity entrepreneur
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?c WHERE { { ?c rdf:type ontology:occupation . ?x rdf:type ontology:work_of_art . ?x property:main_subject ?c } UNION { ?x property:main_subject ?c . ?c rdf:type ontology:occupation . ?x rdf:type ontology:work } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:main_subject resource:entrepreneur . { { ?m rdf:type ontology:work_of_art } UNION { ?m rdf:type ontology:work } } } } . FILTER ( ?s = ?d ) }
[]
occupation work of art work
SYSTEM
96
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q131524
relation P921
type Q838948
type Q386724
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?c WHERE { { ?c rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q838948 . ?x property:P921 ?c } UNION { ?x property:P921 ?c . ?c rdf:type ontology:Q12737077 . ?x rdf:type ontology:Q386724 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:P921 resource:Q131524 . { { ?m rdf:type ontology:Q838948 } UNION { ?m rdf:type ontology:Q386724 } } } } . FILTER ( ?s = ?d ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
96
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity entrepreneur
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) ?c WHERE { { ?c rdf:type ontology:occupation . ?x rdf:type ontology:work_of_art . ?x property:main_subject ?c } UNION { ?x property:main_subject ?c . ?c rdf:type ontology:occupation . ?x rdf:type ontology:work } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { ?m property:main_subject resource:entrepreneur . { { ?m rdf:type ontology:work_of_art } UNION { ?m rdf:type ontology:work } } } } . FILTER ( ?s = ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q131512
P921
Q12737077 Q838948 Q386724
USER
And what about farmer?
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q131512
relation P921
type Q838948
type Q386724
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?h WHERE { { ?m property:P921 ?h . ?m rdf:type ontology:Q838948 . ?h rdf:type ontology:Q12737077 } UNION { ?m property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q386724 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q386724 } } . ?v property:P921 resource:Q131512 } } . FILTER ( ?d = ?x ) }
farmer
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity farmer
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?h WHERE { { ?m property:main_subject ?h . ?m rdf:type ontology:work_of_art . ?h rdf:type ontology:occupation } UNION { ?m property:main_subject ?h . ?h rdf:type ontology:occupation . ?m rdf:type ontology:work } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:work } } . ?v property:main_subject resource:farmer } } . FILTER ( ?d = ?x ) }
[]
occupation work of art work
SYSTEM
96
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q39631 Q1124183 Q11631 Q5185440 Q765778 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q937857 Q618536 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q838948)|c(Q386724),P921,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q131512
relation P921
type Q838948
type Q386724
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q386724'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?h WHERE { { ?m property:P921 ?h . ?m rdf:type ontology:Q838948 . ?h rdf:type ontology:Q12737077 } UNION { ?m property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?m rdf:type ontology:Q386724 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q386724 } } . ?v property:P921 resource:Q131512 } } . FILTER ( ?d = ?x ) }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve physician lumberjack astronaut Crime scene cleanup organist writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates association football player candidate taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
96
action count
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action find_reverse_tuple_counts
relation main subject
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity farmer
relation main subject
type work of art
type work
[[{'concept': 'work of art'}, {'concept': 'work'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) ?h WHERE { { ?m property:main_subject ?h . ?m rdf:type ontology:work_of_art . ?h rdf:type ontology:occupation } UNION { ?m property:main_subject ?h . ?h rdf:type ontology:occupation . ?m rdf:type ontology:work } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:work } } . ?v property:main_subject resource:farmer } } . FILTER ( ?d = ?x ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4396715 Q11522436
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Yi, Yŏng-hŭi, 1931- or Rozybakiev Abdullah Akhmetovich ?
OR((Q11522436,P27,c(Q15617994)), (Q4396715,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11522436
relation P27
action find
entity Q4396715
relation P27
type Q15617994
{'OR': [['Q11522436', 'P27', {'concept': 'Q15617994'}], ['Q4396715', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q11522436 property:P27 ?l } UNION { resource:Q4396715 property:P27 ?l } } }
Rozybakiev Abdullah Akhmetovich Yi, Yŏng-hŭi, 1931-
action filter_type
action union
action find
entity Yi, Yŏng-hŭi, 1931-
relation country of citizenship
action find
entity Rozybakiev Abdullah Akhmetovich
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Yi, Yŏng-hŭi, 1931-', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Rozybakiev Abdullah Akhmetovich', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Yi,_Yŏng-hŭi,_1931- property:country_of_citizenship ?l } UNION { resource:Rozybakiev_Abdullah_Akhmetovich property:country_of_citizenship ?l } } }
[]
designation for an administrative territorial entity
Q17 Q232
SYSTEM
Japan, Kazakhstan
Q17 Q232
OR((Q11522436,P27,c(Q15617994)), (Q4396715,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11522436
relation P27
action find
entity Q4396715
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Yi, Yŏng-hŭi, 1931- or Rozybakiev Abdullah Akhmetovich
{'OR': [['Q11522436', 'P27', {'concept': 'Q15617994'}], ['Q4396715', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . { { resource:Q11522436 property:P27 ?l } UNION { resource:Q4396715 property:P27 ?l } } }
Japan Kazakhstan
Japan and Kazakhstan are the countries of citizenship of Yi, Yŏng-hŭi, 1931- or Rozybakiev Abdullah Akhmetovich
Japan Kazakhstan
action filter_type
action union
action find
entity Yi, Yŏng-hŭi, 1931-
relation country of citizenship
action find
entity Rozybakiev Abdullah Akhmetovich
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Yi, Yŏng-hŭi, 1931-', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Rozybakiev Abdullah Akhmetovich', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Yi,_Yŏng-hŭi,_1931- property:country_of_citizenship ?l } UNION { resource:Rozybakiev_Abdullah_Akhmetovich property:country_of_citizenship ?l } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q17 Q232
P463
Q484652
USER
What were those administrative territories a member of ?
(Q17,P463,c(Q484652)) (Q232,P463,c(Q484652))
action filter_type
action find
entity prev_answer
relation P463
type Q484652
['Q17', 'P463', {'concept': 'Q484652'}] ['Q232', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q484652 . VALUES ( ?y ) { ( resource:Q17 ) ( resource:Q232 ) } . ?y property:P463 ?j }
Japan Kazakhstan
action filter_type
action find
entity prev_answer
relation member of
type international organization
['Japan', 'member of', {'concept': 'international organization'}] ['Kazakhstan', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:international_organization . VALUES ( ?y ) { ( resource:Japan ) ( resource:Kazakhstan ) } . ?y property:member_of ?j }
[]
international organization
Q81299 Q19771 Q1065
SYSTEM
Organization for Security and Co-operation in Europe, G20, United Nations
Q1043527 Q19771 Q37143 Q188822 Q1065 Q81299 Q1065 Q188822 Q1043527
(Q17,P463,c(Q484652)) (Q232,P463,c(Q484652))
action filter_type
action find
entity prev_answer
relation P463
type Q484652
Those administrative territories a member of were the [ANSWERS]
['Q17', 'P463', {'concept': 'Q484652'}] ['Q232', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q484652 . VALUES ( ?y ) { ( resource:Q17 ) ( resource:Q232 ) } . ?y property:P463 ?j }
Multilateral Investment Guarantee Agency G20 G8 Asian Development Bank United Nations Organization for Security and Co-operation in Europe United Nations Asian Development Bank Multilateral Investment Guarantee Agency
Those administrative territories a member of were the Organization for Security and Co-operation in Europe, G20 and United Nations
Organization for Security and Co-operation in Europe G20 United Nations
action filter_type
action find
entity prev_answer
relation member of
type international organization
['Japan', 'member of', {'concept': 'international organization'}] ['Kazakhstan', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:international_organization . VALUES ( ?y ) { ( resource:Japan ) ( resource:Kazakhstan ) } . ?y property:member_of ?j }
[]