Simple Question (Direct)
Simple Question
Q259422
P106
Q12737077
USER
What are the job of Masako Nozawa ?
(Q259422,P106,c(Q12737077))
action filter_type
action find
entity Q259422
relation P106
type Q12737077
['Q259422', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q259422 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Masako Nozawa
action filter_type
action find
entity Masako Nozawa
relation occupation
type occupation
['Masako Nozawa', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Masako_Nozawa property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q970153 Q33999 Q622807
SYSTEM
child actor, actor, seiyū
Q970153 Q33999 Q622807
(Q259422,P106,c(Q12737077))
action filter_type
action find
entity Q259422
relation P106
type Q12737077
The job of Masako Nozawa are a [ANSWERS]
['Q259422', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q259422 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
child actor actor seiyū
The job of Masako Nozawa are a child actor, actor and seiyū
child actor actor seiyū
action filter_type
action find
entity Masako Nozawa
relation occupation
type occupation
['Masako Nozawa', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Masako_Nozawa property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q259422
P26
Q502895
USER
Which person is married to that one ?
(c(Q502895),P26,Q970153) (c(Q502895),P26,Q33999) (c(Q502895),P26,Q622807)
action filter_type
action find
entity Q259422
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q970153'] [{'concept': 'Q502895'}, 'P26', 'Q33999'] [{'concept': 'Q502895'}, 'P26', 'Q622807']
SELECT DISTINCT ?b WHERE { resource:Q259422 property:P26 ?b . ?b rdf:type ontology:Q502895 }
Masako Nozawa
action filter_type
action find
entity Masako Nozawa
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'child actor'] [{'concept': 'common name'}, 'spouse', 'actor'] [{'concept': 'common name'}, 'spouse', 'seiyū']
SELECT DISTINCT ?b WHERE { resource:Masako_Nozawa property:spouse ?b . ?b rdf:type ontology:common_name }
[]
common name
Q1625322
SYSTEM
Masaaki Tsukada
Q1625322
(c(Q502895),P26,Q970153) (c(Q502895),P26,Q33999) (c(Q502895),P26,Q622807)
action filter_type
action find
entity Q259422
relation P26
type Q502895
[ANSWER] is married to that one
[{'concept': 'Q502895'}, 'P26', 'Q970153'] [{'concept': 'Q502895'}, 'P26', 'Q33999'] [{'concept': 'Q502895'}, 'P26', 'Q622807']
SELECT DISTINCT ?b WHERE { resource:Q259422 property:P26 ?b . ?b rdf:type ontology:Q502895 }
Masaaki Tsukada
Masaaki Tsukada is married to that one
Masaaki Tsukada
action filter_type
action find
entity Masako Nozawa
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'child actor'] [{'concept': 'common name'}, 'spouse', 'actor'] [{'concept': 'common name'}, 'spouse', 'seiyū']
SELECT DISTINCT ?b WHERE { resource:Masako_Nozawa property:spouse ?b . ?b rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1238570
P921
Q12737077 Q732577 Q838948
USER
Which occupations were around the same number of publications and works of art mainly about as political scientist ?
(c(Q732577)|c(Q838948),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1238570
relation P921
type Q732577
type Q838948
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?o WHERE { { ?e property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q838948 } UNION { ?e rdf:type ontology:Q732577 . ?o rdf:type ontology:Q12737077 . ?e property:P921 ?o } } GROUP BY ?o } . FILTER ( ?d = ?r ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:P921 resource:Q1238570 . { { ?v rdf:type ontology:Q732577 } UNION { ?v rdf:type ontology:Q838948 } } } } }
political scientist
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity political scientist
relation main subject
type publication
type work of art
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?o WHERE { { ?e property:main_subject ?o . ?o rdf:type ontology:occupation . ?e rdf:type ontology:work_of_art } UNION { ?e rdf:type ontology:publication . ?o rdf:type ontology:occupation . ?e property:main_subject ?o } } GROUP BY ?o } . FILTER ( ?d = ?r ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:main_subject resource:political_scientist . { { ?v rdf:type ontology:publication } UNION { ?v rdf:type ontology:work_of_art } } } } }
[]
occupation publication work of art
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
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(Q732577)|c(Q838948),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1238570
relation P921
type Q732577
type Q838948
[ANSWERS] were around the same number of publications and works of art mainly about as political scientist
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?o WHERE { { ?e property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?e rdf:type ontology:Q838948 } UNION { ?e rdf:type ontology:Q732577 . ?o rdf:type ontology:Q12737077 . ?e property:P921 ?o } } GROUP BY ?o } . FILTER ( ?d = ?r ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:P921 resource:Q1238570 . { { ?v rdf:type ontology:Q732577 } UNION { ?v rdf:type ontology:Q838948 } } } } }
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
Fletcher Christian, farmer and librarian were around the same number of publications and works of art mainly about as political scientist
Fletcher Christian farmer librarian
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity political scientist
relation main subject
type publication
type work of art
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) ?o WHERE { { ?e property:main_subject ?o . ?o rdf:type ontology:occupation . ?e rdf:type ontology:work_of_art } UNION { ?e rdf:type ontology:publication . ?o rdf:type ontology:occupation . ?e property:main_subject ?o } } GROUP BY ?o } . FILTER ( ?d = ?r ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v property:main_subject resource:political_scientist . { { ?v rdf:type ontology:publication } UNION { ?v rdf:type ontology:work_of_art } } } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q182436
P425
Q1047113
USER
What has that one as the associated field of occupation ?
(Q182436,P425,c(Q1047113))
action filter_type
action find
entity Q182436
relation P425
type Q1047113
['Q182436', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?n WHERE { resource:Q182436 property:P425 ?n . ?n rdf:type ontology:Q1047113 }
librarian
action filter_type
action find
entity librarian
relation field of this occupation
type special field
['librarian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?n WHERE { resource:librarian property:field_of_this_occupation ?n . ?n rdf:type ontology:special_field }
[]
special field
Clarification for simple ques.
Q131512
SYSTEM
Did you mean farmer ?
Q316070 Q131512 Q182436
(Q316070,P425,c(Q1047113)) (Q131512,P425,c(Q1047113)) (Q182436,P425,c(Q1047113))
[ANSWER]
['Q316070', 'P425', {'concept': 'Q1047113'}] ['Q131512', 'P425', {'concept': 'Q1047113'}] ['Q182436', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?n WHERE { resource:Q182436 property:P425 ?n . ?n rdf:type ontology:Q1047113 }
Fletcher Christian farmer librarian
Did you mean farmer ?
farmer
['Fletcher Christian', 'field of this occupation', {'concept': 'special field'}] ['farmer', 'field of this occupation', {'concept': 'special field'}] ['librarian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?n WHERE { resource:librarian property:field_of_this_occupation ?n . ?n rdf:type ontology:special_field }
[]
Simple Question (Coreferenced)
USER
No, I meant librarian. Could you tell me the answer for that?
(Q182436,P425,c(Q1047113))
Q182436
['Q182436', 'P425', {'concept': 'Q1047113'}]
['librarian', 'field of this occupation', {'concept': 'special field'}]
[]
Q199655
SYSTEM
library science
Q199655
(Q182436,P425,c(Q1047113))
action filter_type
action find
entity Q182436
relation P425
type Q1047113
[ANSWER] has that one as the associated field of occupation
['Q182436', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?n WHERE { resource:Q182436 property:P425 ?n . ?n rdf:type ontology:Q1047113 }
library science
Library science has that one as the associated field of occupation
library science
action filter_type
action find
entity librarian
relation field of this occupation
type special field
['librarian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?n WHERE { resource:librarian property:field_of_this_occupation ?n . ?n rdf:type ontology:special_field }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q199655 Q6154243
P69
Q502895
USER
Did Janice Gould study at that special field ?
(Q6154243,P69,Q199655)
action is_in
entity Q199655
action find
entity Q6154243
relation P69
['Q6154243', 'P69', 'Q199655']
ASK WHERE { resource:Q6154243 property:P69 resource:Q199655 }
library science Janice Gould
action is_in
entity library science
action find
entity Janice Gould
relation educated at
['Janice Gould', 'educated at', 'library science']
ASK WHERE { resource:Janice_Gould property:educated_at resource:library_science }
[]
common name
SYSTEM
YES
(Q6154243,P69,Q199655)
action is_in
entity Q199655
action find
entity Q6154243
relation P69
[ANSWER]
['Q6154243', 'P69', 'Q199655']
ASK WHERE { resource:Q6154243 property:P69 resource:Q199655 }
Yes
action is_in
entity library science
action find
entity Janice Gould
relation educated at
['Janice Gould', 'educated at', 'library science']
ASK WHERE { resource:Janice_Gould property:educated_at resource:library_science }
[]