Simple Question (Direct)
Simple Question
Q5345773
P21
Q290
USER
What is the sex of Edward Waldo Emerson ?
(Q5345773,P21,c(Q290))
action filter_type
action find
entity Q5345773
relation P21
type Q290
['Q5345773', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . resource:Q5345773 property:P21 ?y }
Edward Waldo Emerson
action filter_type
action find
entity Edward Waldo Emerson
relation gender
type sex
['Edward Waldo Emerson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . resource:Edward_Waldo_Emerson property:gender ?y }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5345773,P21,c(Q290))
action filter_type
action find
entity Q5345773
relation P21
type Q290
The sex of Edward Waldo Emerson is the [ANSWER]
['Q5345773', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q290 . resource:Q5345773 property:P21 ?y }
male
The sex of Edward Waldo Emerson is the male
male
action filter_type
action find
entity Edward Waldo Emerson
relation gender
type sex
['Edward Waldo Emerson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:sex . resource:Edward_Waldo_Emerson property:gender ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5345773
P40
Q502895
USER
Whose child is Edward Waldo Emerson ?
(c(Q502895),P40,Q5345773)
action filter_type
action find_reverse
entity Q5345773
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q5345773']
SELECT DISTINCT ?g WHERE { ?g property:P40 resource:Q5345773 . ?g rdf:type ontology:Q502895 }
Edward Waldo Emerson
action filter_type
action find_reverse
entity Edward Waldo Emerson
relation child
type common name
[{'concept': 'common name'}, 'child', 'Edward Waldo Emerson']
SELECT DISTINCT ?g WHERE { ?g property:child resource:Edward_Waldo_Emerson . ?g rdf:type ontology:common_name }
[]
common name
Q48226
SYSTEM
Ralph Waldo Emerson
Q48226
(c(Q502895),P40,Q5345773)
action filter_type
action find_reverse
entity Q5345773
relation P40
type Q502895
[ANSWER] is Edward Waldo Emerson
[{'concept': 'Q502895'}, 'P40', 'Q5345773']
SELECT DISTINCT ?g WHERE { ?g property:P40 resource:Q5345773 . ?g rdf:type ontology:Q502895 }
Ralph Waldo Emerson
Ralph Waldo Emerson is Edward Waldo Emerson
Ralph Waldo Emerson
action filter_type
action find_reverse
entity Edward Waldo Emerson
relation child
type common name
[{'concept': 'common name'}, 'child', 'Edward Waldo Emerson']
SELECT DISTINCT ?g WHERE { ?g property:child resource:Edward_Waldo_Emerson . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q48226
P1576
Q151885
USER
What best describes the lifestyle of that person ?
(Q48226,P1576,c(Q151885))
action filter_type
action find
entity Q48226
relation P1576
type Q151885
['Q48226', 'P1576', {'concept': 'Q151885'}]
SELECT DISTINCT ?h WHERE { resource:Q48226 property:P1576 ?h . ?h rdf:type ontology:Q151885 }
Ralph Waldo Emerson
action filter_type
action find
entity Ralph Waldo Emerson
relation lifestyle
type concept
['Ralph Waldo Emerson', 'lifestyle', {'concept': 'concept'}]
SELECT DISTINCT ?h WHERE { resource:Ralph_Waldo_Emerson property:lifestyle ?h . ?h rdf:type ontology:concept }
[]
concept
Q12328016
SYSTEM
mystic
Q12328016
(Q48226,P1576,c(Q151885))
action filter_type
action find
entity Q48226
relation P1576
type Q151885
[ANSWER] best describes the lifestyle of that person
['Q48226', 'P1576', {'concept': 'Q151885'}]
SELECT DISTINCT ?h WHERE { resource:Q48226 property:P1576 ?h . ?h rdf:type ontology:Q151885 }
mystic
Mystic best describes the lifestyle of that person
mystic
action filter_type
action find
entity Ralph Waldo Emerson
relation lifestyle
type concept
['Ralph Waldo Emerson', 'lifestyle', {'concept': 'concept'}]
SELECT DISTINCT ?h WHERE { resource:Ralph_Waldo_Emerson property:lifestyle ?h . ?h rdf:type ontology:concept }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q48226
P26
Q502895
USER
How many people are married to Ralph Waldo Emerson ?
(Q48226,P26,c(Q502895))
action count
action filter_type
action find
entity Q48226
relation P26
type Q502895
['Q48226', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Q48226 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Ralph Waldo Emerson
action count
action filter_type
action find
entity Ralph Waldo Emerson
relation spouse
type common name
['Ralph Waldo Emerson', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Ralph_Waldo_Emerson property:spouse ?d . ?d rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q15176434
(Q48226,P26,c(Q502895))
action count
action filter_type
action find
entity Q48226
relation P26
type Q502895
[ANSWER]
['Q48226', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Q48226 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Lidian Jackson Emerson
1
action count
action filter_type
action find
entity Ralph Waldo Emerson
relation spouse
type common name
['Ralph Waldo Emerson', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?c ) WHERE { resource:Ralph_Waldo_Emerson property:spouse ?d . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q234661
P26
Q502895
USER
And also tell me about Kelli Williams?
(Q234661,P26,c(Q502895))
action count
action filter_type
action find
entity Q234661
relation P26
type Q502895
['Q234661', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ontology:Q502895 . resource:Q234661 property:P26 ?u }
Kelli Williams
action count
action filter_type
action find
entity Kelli Williams
relation spouse
type common name
['Kelli Williams', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ontology:common_name . resource:Kelli_Williams property:spouse ?u }
[]
common name
SYSTEM
1
Q4699653
(Q234661,P26,c(Q502895))
action count
action filter_type
action find
entity Q234661
relation P26
type Q502895
[ANSWER]
['Q234661', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ontology:Q502895 . resource:Q234661 property:P26 ?u }
Ajay Sahgal
1
action count
action filter_type
action find
entity Kelli Williams
relation spouse
type common name
['Kelli Williams', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { ?u rdf:type ontology:common_name . resource:Kelli_Williams property:spouse ?u }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q21030305
Q502895
USER
And what about Julia Smith?
(Q21030305,P26,c(Q502895))
action count
action filter_type
action find
entity Q21030305
relation P26
type Q502895
['Q21030305', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Q21030305 property:P26 ?a . ?a rdf:type ontology:Q502895 }
Julia Smith
action count
action filter_type
action find
entity Julia Smith
relation spouse
type common name
['Julia Smith', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Julia_Smith property:spouse ?a . ?a rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q21030305,P26,c(Q502895))
action count
action filter_type
action find
entity Q21030305
relation P26
type Q502895
[ANSWER]
['Q21030305', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Q21030305 property:P26 ?a . ?a rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity Julia Smith
relation spouse
type common name
['Julia Smith', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Julia_Smith property:spouse ?a . ?a rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P706
Q2221906 Q151885
USER
How many geographic locations are the location where approximately 6 concepts are located ?
(c(Q151885),P706,c(Q2221906))
action count
action approx
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q151885
value 6
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?p ) WHERE { ?r property:P706 ?a . ?a rdf:type ontology:Q2221906 . ?r rdf:type ontology:Q151885 } GROUP BY ?a } . FILTER ( ?p = 6 ) }
action count
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type concept
value 6
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?p ) WHERE { ?r property:located_on_terrain_feature ?a . ?a rdf:type ontology:geographic_location . ?r rdf:type ontology:concept } GROUP BY ?a } . FILTER ( ?p = 6 ) }
[]
geographic location concept
SYSTEM
2
Q27468 Q27496
(c(Q151885),P706,c(Q2221906))
action count
action approx
action find_reverse_tuple_counts
relation P706
type Q2221906
type Q151885
value 6
[ANSWER]
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?p ) WHERE { ?r property:P706 ?a . ?a rdf:type ontology:Q2221906 . ?r rdf:type ontology:Q151885 } GROUP BY ?a } . FILTER ( ?p = 6 ) }
Eastern Europe Western Europe
2
action count
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type geographic location
type concept
value 6
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?r ) AS ?p ) WHERE { ?r property:located_on_terrain_feature ?a . ?a rdf:type ontology:geographic_location . ?r rdf:type ontology:concept } GROUP BY ?a } . FILTER ( ?p = 6 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q16004873
P706
Q82794 Q151885
USER
How many geographic regions are greater number of concepts located on than Lavinia Planitia quadrangle ?
(c(Q151885),P706,c(Q82794))
action count
action greater
action find_reverse_tuple_counts
relation P706
type Q82794
type Q151885
action count
action filter_type
action find
entity Q16004873
relation P706
type Q82794
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P706 ?h . ?b rdf:type ontology:Q151885 . ?h rdf:type ontology:Q82794 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Q16004873 property:P706 ?k . ?k rdf:type ontology:Q82794 } } . FILTER ( ?o > ?p ) }
Lavinia Planitia quadrangle
action count
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic region
type concept
action count
action filter_type
action find
entity Lavinia Planitia quadrangle
relation located on terrain feature
type geographic region
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:located_on_terrain_feature ?h . ?b rdf:type ontology:concept . ?h rdf:type ontology:geographic_region } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Lavinia_Planitia_quadrangle property:located_on_terrain_feature ?k . ?k rdf:type ontology:geographic_region } } . FILTER ( ?o > ?p ) }
[]
geographic region concept
SYSTEM
5
Q192273 Q690127 Q207388 Q257965 Q174994
(c(Q151885),P706,c(Q82794))
action count
action greater
action find_reverse_tuple_counts
relation P706
type Q82794
type Q151885
action count
action filter_type
action find
entity Q16004873
relation P706
type Q82794
[ANSWER]
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:P706 ?h . ?b rdf:type ontology:Q151885 . ?h rdf:type ontology:Q82794 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Q16004873 property:P706 ?k . ?k rdf:type ontology:Q82794 } } . FILTER ( ?o > ?p ) }
Karelia Lower Engadine Muntenia Val Müstair Bessarabia
5
action count
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic region
type concept
action count
action filter_type
action find
entity Lavinia Planitia quadrangle
relation located on terrain feature
type geographic region
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?b ) AS ?o ) WHERE { ?b property:located_on_terrain_feature ?h . ?b rdf:type ontology:concept . ?h rdf:type ontology:geographic_region } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?p ) WHERE { resource:Lavinia_Planitia_quadrangle property:located_on_terrain_feature ?k . ?k rdf:type ontology:geographic_region } } . FILTER ( ?o > ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q22666716
P706
Q82794 Q151885
USER
And how about Brda basin?
(c(Q151885),P706,c(Q82794))
action count
action greater
action find_reverse_tuple_counts
relation P706
type Q82794
type Q151885
action count
action filter_type
action find
entity Q22666716
relation P706
type Q82794
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:P706 ?w . ?w rdf:type ontology:Q82794 . ?r rdf:type ontology:Q151885 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { resource:Q22666716 property:P706 ?l . ?l rdf:type ontology:Q82794 } } . FILTER ( ?i > ?d ) }
Brda basin
action count
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic region
type concept
action count
action filter_type
action find
entity Brda basin
relation located on terrain feature
type geographic region
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:located_on_terrain_feature ?w . ?w rdf:type ontology:geographic_region . ?r rdf:type ontology:concept } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { resource:Brda_basin property:located_on_terrain_feature ?l . ?l rdf:type ontology:geographic_region } } . FILTER ( ?i > ?d ) }
[]
geographic region concept
SYSTEM
5
Q192273 Q690127 Q207388 Q257965 Q174994
(c(Q151885),P706,c(Q82794))
action count
action greater
action find_reverse_tuple_counts
relation P706
type Q82794
type Q151885
action count
action filter_type
action find
entity Q22666716
relation P706
type Q82794
[ANSWER]
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q82794'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:P706 ?w . ?w rdf:type ontology:Q82794 . ?r rdf:type ontology:Q151885 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { resource:Q22666716 property:P706 ?l . ?l rdf:type ontology:Q82794 } } . FILTER ( ?i > ?d ) }
Karelia Lower Engadine Muntenia Val Müstair Bessarabia
5
action count
action greater
action find_reverse_tuple_counts
relation located on terrain feature
type geographic region
type concept
action count
action filter_type
action find
entity Brda basin
relation located on terrain feature
type geographic region
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'geographic region'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?i ) WHERE { ?r property:located_on_terrain_feature ?w . ?w rdf:type ontology:geographic_region . ?r rdf:type ontology:concept } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?d ) WHERE { resource:Brda_basin property:located_on_terrain_feature ?l . ?l rdf:type ontology:geographic_region } } . FILTER ( ?i > ?d ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q5345773
P21 P22
Q502895
USER
Which people have Edward Waldo Emerson as a parent and are a male ?
AND((c(Q502895),P22,Q5345773), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5345773
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q5345773'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?c WHERE { ?c property:P22 resource:Q5345773 . ?c property:P21 resource:Q6581097 . ?c rdf:type ontology:Q502895 }
male Edward Waldo Emerson
action filter_type
action intersection
action find_reverse
entity Edward Waldo Emerson
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Edward Waldo Emerson'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?c WHERE { ?c property:father resource:Edward_Waldo_Emerson . ?c property:gender resource:male . ?c rdf:type ontology:common_name }
[]
common name
Q18631952
SYSTEM
Raymond Emerson
Q18631952
AND((c(Q502895),P22,Q5345773), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q5345773
relation P22
action find_reverse
entity Q6581097
relation P21
type Q502895
And [ANSWER] have Edward Waldo Emerson as a parent and are a male
{'AND': [[{'concept': 'Q502895'}, 'P22', 'Q5345773'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?c WHERE { ?c property:P22 resource:Q5345773 . ?c property:P21 resource:Q6581097 . ?c rdf:type ontology:Q502895 }
Raymond Emerson
And Raymond Emerson have Edward Waldo Emerson as a parent and are a male
Raymond Emerson
action filter_type
action intersection
action find_reverse
entity Edward Waldo Emerson
relation father
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'father', 'Edward Waldo Emerson'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?c WHERE { ?c property:father resource:Edward_Waldo_Emerson . ?c property:gender resource:male . ?c rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q151885 Q17638008 Q18783400
USER
How many concepts are expressed in around 4 game equipment and genres of sculpture ?
(c(Q17638008)|c(Q18783400),P180,c(Q151885))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q17638008
action find_reverse_tuple_counts
relation P180
type Q151885
type Q18783400
value 4
[[{'concept': 'Q17638008'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?o ) WHERE { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q17638008 ) ( ontology:Q18783400 ) } } GROUP BY ?x } . FILTER ( ?o = 4 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type concept
type game equipment
action find_reverse_tuple_counts
relation depicts
type concept
type genre of sculpture
value 4
[[{'concept': 'game equipment'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?o ) WHERE { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:game_equipment ) ( ontology:genre_of_sculpture ) } } GROUP BY ?x } . FILTER ( ?o = 4 ) }
[]
concept game equipment genre of sculpture
SYSTEM
66
Q254508 Q193373 Q13381863 Q2304859 Q2472587 Q7743 Q188353 Q34023 Q454 Q177923 Q8436 Q14467155 Q177826 Q189829 Q48942 Q1968442 Q170430 Q482980 Q12004621 Q11513337 Q12773225 Q2207288 Q126236 Q15980704 Q273283 Q124216 Q703534 Q272735 Q17176618 Q38433 Q48282 Q113904 Q43616 Q1146843 Q1714828 Q2979 Q25443024 Q4964182 Q11399 Q40953 Q213449 Q527 Q327055 Q877674 Q6388 Q203872 Q6537379 Q2083958 Q855091 Q2066131 Q3562775 Q931260 Q192581 Q18120029 Q18121798 Q876776 Q10843402 Q179637 Q5167661 Q3035707 Q1862087 Q1134237 Q10294 Q1125062 Q13382576 Q7234072
(c(Q17638008)|c(Q18783400),P180,c(Q151885))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q151885
type Q17638008
action find_reverse_tuple_counts
relation P180
type Q151885
type Q18783400
value 4
[ANSWER]
[[{'concept': 'Q17638008'}, {'concept': 'Q18783400'}], 'P180', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?o ) WHERE { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:Q17638008 ) ( ontology:Q18783400 ) } } GROUP BY ?x } . FILTER ( ?o = 4 ) }
outlaw Gordian knot fencer sovereign people home Welsh people tumulus peace auction family gaze clergy hermit pupil donor predation author fortune-teller athletics competitor slave craft conquistador matchmaker beggar Swiss people employee tree smuggler Newton's laws of motion student Radha mummy anchorite hunter liberty to walk philosopher rock music prayer eating sky worker touch human swimming being walking pattern guitarist sportsperson thief murderer job bibliophile lovers' embrace drinking swimmer prisoner of war justice gift prisoner court poverty rebel rower postal worker
66
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type concept
type game equipment
action find_reverse_tuple_counts
relation depicts
type concept
type genre of sculpture
value 4
[[{'concept': 'game equipment'}, {'concept': 'genre of sculpture'}], 'depicts', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?o ) WHERE { ?w rdf:type ?b . VALUES ( ?b ) { ( ontology:game_equipment ) ( ontology:genre_of_sculpture ) } } GROUP BY ?x } . FILTER ( ?o = 4 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8558
P17
Q15617994
USER
Which administrative territory does 2004 Summer Olympics belong to ?
(Q8558,P17,c(Q15617994))
action filter_type
action find
entity Q8558
relation P17
type Q15617994
['Q8558', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q8558 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
2004 Summer Olympics
action filter_type
action find
entity 2004 Summer Olympics
relation country
type designation for an administrative territorial entity
['2004 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:2004_Summer_Olympics property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q41
SYSTEM
Greece
Q41
(Q8558,P17,c(Q15617994))
action filter_type
action find
entity Q8558
relation P17
type Q15617994
2004 Summer Olympics belongs to the [ANSWER]
['Q8558', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q8558 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
Greece
2004 Summer Olympics belongs to the Greece
Greece
action filter_type
action find
entity 2004 Summer Olympics
relation country
type designation for an administrative territorial entity
['2004 Summer Olympics', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:2004_Summer_Olympics property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]